Part Number Hot Search : 
3KP13 G1211 BR3199 HFA3824 FB2425N7 SMAJ4737 SMCJ22 PT370T30
Product Description
Full Text Search
 

To Download ADAV804 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 Audio Codec For Recordable DVD
Preliminary Technical Data
FEATURES
Stereo Analog to Digital Converter (ADC) Supports 48/96 kHz Sample Rates 102 dB Dynamic Range Single-Ended Input Automatic Level Control Stereo Digital to Analog Converter (DAC) Supports 32/44.1/48/96/192 kHz Sample Rates 103 dB Dynamic Range Differential Output Asynchronous operation of ADC and DAC Stereo Sample Rate Converter (SRC) Input/Output Range - 8 - 96 kHz 140 dB Dynamic Range Digital Interfaces Record Playback Aux Record Aux Playback S/PDIF (IEC60958) Input & Output Digital Interface Receiver (DIR) Digital Interface Transmitter (DIT) PLL based Audio MCLK Generators Generates Required DVDR System MCLKs Device Control via I2C compatible serial port 64-Lead LQFP Package
ADAV804
APPLICATIONS
DVD-Recordable All Formats CD-R/W
PRODUCT OVERVIEW
The ADAV804 is a stereo audio codec intended for applications, such as DVD or CD recorders, requiring high performance, flexible and cost effective playback and record functionality. The ADAV804 features Analog Devices proprietary, high performance converter cores to provide record (ADC), playback (DAC) and format conversion (SRC) in a single chip. The ADAV804's record channel features variable input gain to allow for adjustment of recorded input levels, followed by a high performance stereo ADC whose digital output is sent to the record interface. The record channel also features Level Detectors which can be used in feedback loops to adjust input levels for optimum recording. The playback channel features a high performance stereo DAC with independent digital volume control. The Sample Rate Converter (SRC) provides high performance sample-rate conversion to allow inputs and outputs requiring different sample rates to be matched. The SRC input can be selected from Playback, Auxiliary, DIR or ADC (record). The SRC output can be applied to the Playback DAC, both main and Auxiliary record channels and a DIT. (continued on Page 12)
FUNCTIONAL BLOCK DIAGRAM
SYSCLK1 XOUT SYSCLK2 MCLKO MCLKI SYSCLK3 SDA SCL XIN AD1 AD0
PLL
Control Registers Record Data Output OLRCLK OBCLK OSDATA OAUXLRCLK Aux Data Output OAUXBCLK OAUXSDATA
VINL VINR Analog to Digital Converter Digital Input/Output Switching Matrix (Datapath)
VREF VOUTLN VOUTLP VOUTRN VOUTRP FILTD
Reference
SRC
Digital to Analog Converter
DIT
DITOUT
Playback Data Input
Aux Data Input
DIR
ZEROL/INT ZEROR
ADAV804
804-0001
ILRCLK ISDATA IAUXLRCLK IAUXBCLK IBCLK IAUXSDATA DIRIN
Figure 1. Rev. Pr G
Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. Specifications subject to change without notice. No license is granted by implication or otherwise under any patent or patent rights of Analog Devices. Trademarks and registered trademarks are the property of their respectiveorners.
One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. Tel: 781.329.4700 www.analog.com Fax: 781.326.8703 (c) 2004 Analog Devices, Inc. All rights reserved.
ADAV804 TABLE OF CONTENTS
Specifications..................................................................................... 3 Timing Specifications....................................................................... 7 Absolute Maximum Ratings............................................................ 8 ESD Caution.................................................................................. 8 Pin Configuration and Function Descriptions............................. 9 Functional Description .................................................................. 12 ADC Section ............................................................................... 12 DAC Section.................................................................................... 15 SRC Functional Overview ............................................................. 16 Theory of Operation .................................................................. 16
Preliminary Technical Data
Conceptual High Interpolation Model.................................... 16 Hardware Model......................................................................... 17 The Sample Rate Converter Architecture ............................... 17 PLL Section ................................................................................. 18 SPDIF Transmitter AND Receiver........................................... 20 Serial Data Ports ......................................................................... 25 Clocking Scheme........................................................................ 25 Interface Control ........................................................................ 26 Outline Dimensions ....................................................................... 54 Ordering Guide .......................................................................... 54
REVISION HISTORY
Rev. Pr G | Page 2 of 54
Preliminary Technical Data SPECIFICATIONS
Table 1. Test Conditions Unless Otherwise Noted
Supply Voltage Analog Digital Ambient Temperature Master Clock (XIN) Measurement Bandwidth Word Width (All Converters) Load Capacitance on Digital Outputs ADC Input Frequency DAC Output Frequency Digital Input: Slave Mode, I2S Justified Format Digital Output: Master Mode, I2S Justified Forma +3.3 V +3.3 V 25C 12.288 MHz 20 Hz to 20 kHz 24-bits 100 pF 997Hz at -1 dBFS 997Hz at -1 dBFS
ADAV804
Table 2. PGA Section
Min Input Impedance Minimum Gain Maximum Gain Gain Step Gain Step Error Typ 4 0 24 0.5 TBD Max Unit k dB dB dB dB Conditions
Table 3. Reference Section
Min Absolute Voltage, VREF VREFTemperature Coefficient Typ 1.5 TBD Max Unit V Conditions
ppm/C
Table 4. ADC Section1
Min Number of Channels Resolution Dynamic Range Unweighted A-Weighted Total Harmonic Distorton + Noise Analog Input Input Range ( Full Scale) VREF DC Accuracy Gain Error Interchannel Gain Mismatch Gain Drift Offset Crosstalk (EIAJ Method) Volume Control Step Size (256 Steps) Maximum Volume Attenuation Group Delay Typ 2 24 100 102 -85 1.0 1.5 -1 0.01 100 TBD 100 0.39 -48 TBD Max Unit Bits -60 dB Input 98 99 dB dB dB VRMS V dB dB ppm/C mV dB % per step dB S Conditions
Input = -1.0 dBFS
1
The figures quoted are target specifications and subject to change before release
Rev. Pr G | Page 3 of 54
ADAV804
Table 5. ADC Low-Pass Digital Decmation Filter Characteristics1
Sample Rate (kHz) 48 96 Pass Band Frequency (kHz) 0.45314 x fS TBD x fS Stop Band Frequency (kHz) 0.54648 x fS TBD x fS
Preliminary Technical Data
Stop Band Attenuation (dB) 120 TBD Pass Band Ripple (dB) 0.01 TBD
1
Guaranteed by Design
Table 6. ADC High-Pass Digital Filter Characteristics (fS = 48 kHz)
Min Cutoff Frequency Typ 0.9 Max Units Hz
Table 7. SRC Section
Min Resolution Sample Rate Maximum Sample Rate Ratios Minimum SRC MCLK Upsampling Downsampling Dynamic Range Unweighted A-Weighted Total Harmonic Distortion + Noise 8 138 x fS-MAX 1:8 7.75:1 120 125 -110 dB dB dB 20 Hz to fS/2, 1 kHz, -60 dBFS Input Worst Case - 96 kHz:8 kHz Worst Case - 96 kHz:8 kHz 20 Hz to fS/2, 1 kHz, 0 dBFS Input Typ 24 Max 96 Unit Bits kHz Conditions XIN = 27MHz fS-MAX is the greater of the input or output sample rate
Table 8. DAC Section1
Min Number of Channels Resolution Dynamic Range Unweighted A-Weighted A-Weighted Total Harmonic Distorton + Noise Total Harmonic Distorton + Noise Analog Outputs Output Range ( Full Scale) Output Resistance Common Mode Output Voltage DC Accuracy Gain Error Interchannel Gain Mismatch Gain Drift Crosstalk (EIAJ Method) Phase Deviation Mute Attenuation Volume Control Step Size (128 Steps) Group Delay Typ 2 24 100 103 TBD -96 TBD 1.0 TBD 1.5 -1 0.01 25 125 TBD -63 0.5 TBD Max Unit Bits (20 Hz to 20 kHz, -60 dB Input) TBD dB dB dB dB dB Vrms V dB dB ppm/C dB Degrees dB dB s Conditions
fS = 96 KHz Digital Input = -1.0 dBFS Digital Input = -1.0 dBFS, fS = 96 KHz
1
The figures quoted are target specifications and subject to change before release
Rev. Pr G | Page 4 of 54
Preliminary Technical Data
Table 9. DAC Low-Pass Digital Interpolation Filter Characteristics
Sample Rate (kHz) 44.1 48 96 Pass Band Frequency (kHz) 0.4535 x fS 0.4541 x fS 0.4161 x fS Stop Band Frequency (kHz) 0.5464 x fS 0.5464 x fS 0.5927 x fS Stop Band Attenuation (dB) 70 70 70
ADAV804
Pass Band Ripple (dB) 0.002 0.002 0.005
Table 10. PLL Section
Min Master Clock Input Frequency Generated System Clocks MCLKO SYSCLK1 SYSCLK2 SYSCLK3 Jitter SYSCLK1 SYSCLK2 SYSCLK3 Typ 27/54 27/54 256 256 256 512 TBD TBD TBD 768 768 Max Unit MHz MHz x fS x fS x fS ps rms ps rms ps rms Conditions
256/384/512/768 x 32/44.1/48 kHz1 256/384/512/768 x 32/44.1/48 kHz1 256/512 x 32/44.1/48 kHz1
1
Sample Frequency can be doubled
Table 11. DIR Section
Input Sample Frequency DIR-MCLK Frequency DIR-MCLK Jitter Differential Input Voltage Min 27.2 Typ Max 220 TBD TBD Unit kHz MHz ps mV Condition
TBD
Table 12. DIT Section
Output Sample Frequency Min 27.2 Typ Max 220 Unit kHz Condition
Table 13. Digital I/O
Input Voltage HI (VIH) Input Voltage LO (VIL) Input Leakage (IIH@ VIH = 3.3 V) Input Leakage (IIL@ VIL = 0 V) Output Voltage HI (VOH @ IOH = 1 mA) Output Voltage LO (VOL @ IOL = -1 mA) Input Capacitance Min 2.0 Typ Max DVDD 0.8 10 10 0.4 15 Unit V V A A V V pF Condition
2.4
Rev. Pr G | Page 5 of 54
ADAV804
Table 14. Power
Min Supplies Voltage, AVDD Voltage, DVDD Voltage, ODVDD Analog Current Digital Current, DVDD Digital Interface Current, ODVDD Analog Current--Power Down Digital Current - Power Down Digital Interface Current - Power Down Power Supply Rejection 1 kHz 300 mVP-P Signal at Analog Supply Pins 20 kHz 300 mVP-P Signal at Analog Supply Pins Stopband (>0.55 x FS)--any 300 mVP-P Signal 3.0 3.0 3.0 Typ 3.3 3.3 3.3 Max 3.6 3.6 3.6 45 56 12
Preliminary Technical Data
Unit V V V mA mA mA A A A dB dB dB Condition
TBD TBD TBD TBD TBD TBD
All Supplies at 3.6V All Supplies at 3.6V All Supplies at 3.6V RESET Low, No MCLK RESET Low, No MCLK RESET Low, No MCLK
Rev. Pr G | Page 6 of 54
Preliminary Technical Data TIMING SPECIFICATIONS
Table 15.
Parameter MASTER CLOCK AND RESET fMCLK fXIN tRESET I2C PORT fSCL tSCLH tSCLL Start Condition tSCS tSCH tDS tSCR tSCF tSDR tSDF Stop Condition tSCS SERIAL PORTS1 Slave Mode tSBH tSBL fSBF tSLS tSLH tSDS tSDH tSDD Master Mode tMLD tMDD tMDS tMDH Min MCLKI Frequency XIN Frequency RESET Low SCL Clock Frequency SCL High SCL Low Setup Time Hold Time Data Setup Time SCL Rise Time SCL Fall Time SDA Rise Time SDA Fall Time Setup Time Max 24.576 54 20 400 0.6 1.3 0.6 0.6 100 300 300 300 300 0.6 Unit MHz MHz ns kHz S S S S ns ns ns ns ns S Comments
ADAV804
Relevant for Repeated Start Condition After this period the 1st clock is generated
xBCLK High xBCLK Low xBCLK Frequency xLRCLK Setup xLRCLK Hold xSDATA Setup xSDATA Hold xSDATA Delay xLRCLK Delay xSDATA Delay xSDATA Setup xSDATA Hold
40 40 64 x fS 10 10 10 10 10 5 10 10 10
ns ns ns ns ns ns ns ns ns ns ns To xBCLK Rising Edge From xBCLK Rising Edge To xBCLK Rising Edge From xBCLK Rising Edge From xBCLK Falling Edge From xBCLK Falling Edge From xBCLK Falling Edge From xBCLK Rising Edge From xBCLK Rising Edge
1
The prefix x refers to I-, O-, IAUX- or OAUX- for the full pin name
Table 16. Temperature Range
Min Specifications Guaranteed Functionality Guaranteed Storage
Specifications subject to change without notice.
Typ 25
Max 85 150
-40 -65
Units C C C
Rev. Pr G | Page 7 of 54
ADAV804 ABSOLUTE MAXIMUM RATINGS
Table 17.
Parameter DVDD to DGND and ODVDD to DGND AVDD to AGND Digital Inputs Analog Inputs AGND to DGND Reference Voltage Soldering (10 s) Rating 0 V to 4.6 V 0 V to 4.6 V DGND - 0.3 V to DVDD + 0.3 V AGND - 0.3 V to AVDD + 0.3 V -0.3 V to +0.3 V Indefinite short circuit to ground +300C
Preliminary Technical Data
Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
ESD CAUTION
ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily accumulate on the human body and test equipment and can discharge without detection. Although this product features proprietary ESD protection circuitry, permanent damage may occur on devices subjected to high energy electrostatic discharges. Therefore, proper ESD precautions are recommended to avoid performance degradation or loss of functionality.
Rev. Pr G | Page 8 of 54
Preliminary Technical Data PIN CONFIGURATION AND FUNCTION DESCRIPTIONS
CAPRN CAPRP CAPLP AGND AGND VREF AGND FILTD AGND VOUTR CAPLN VOUTL
ADAV804
AVDD
AVDD
NC
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
NC
VINR 1 VINL 2 AGND 3 AVDD 4 DIR_LF 5 DIR_GND 6 DIR_VDD 7 RESET 8 AD0 9 SDA 10 SCL 11 AD1 12 ZEROL/INT 13 ZEROR 14 DVDD 15 DGND 16
48 PIN 1 IDENTIFIER 47 46 45 44 43 42
ADVDD ADGND PLL_LF2 PLL_LF1 PLL_GND PLL_VDD DGND SYSCLK1 SYSCLK2 SYSCLK3 XIN XOUT MCLKO MCLKI DVDD DGND
ADAV803
TOP VIEW (Not to Scale)
41 40 39 38 37 36 35 34 33
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
ISDATA OLRCLK
OSDATA
DITOUT
IBCLK
ILRCLK
OBCLK
DIRIN ODVDD
OAUXSDATA
ODGND
IAUXLRCLK
IAUXBCLK
OAUXLRCLK
IAUXSDATA
OAUXBCLK
Figure 2. 64-Lead Plastic Quad Flatpack [LQFP] (ST-520)
Table 18. ADAV804 Pin Function Descriptions
Pin Number 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Input/Output INPUT INPUT Mnemonic VINR VINL AGND AVDD DIR_LF DIR_GND DIR_VDD RESET AD0 SDA SCL AD1 ZEROL/INT ZEROR DVDD DGND ILRCLK IBCLK ISDATA OLRCLK OBCLK OSDATA Description Analog Audio Input - Right Channel Analog Audio Input - Left Channel Analog Ground Analog Voltage Supply DIR Phase Locked Loop (PLL) Loop Filter Pin Supply Ground for DIR Analog Section. This pin should be connected to AGND Supply for DIR Analog Section. This pin should be connected to AVDD Reset input (Active Low) I2C Address LSB Data Input/Output of I2C compatible control interface Clock Input of I2C compatible control interface I2C Address MSB Left Channel (Output) Zero Flag or Interrupt (Output) Flag. The function of this pin is determined by the INTRPT bin in DAC Control Register 4 Right Channel (Output) Zero Flag Digital Voltage Supply Digital Ground Sampling Clock (LRCLK) of Playback Digital Input Port Serial Clock (BCLK) of Playback Digital Input Port Data Input of Playback Digital Input Port Sampling Clock (LRCLK) of Record Digital Output Port Serial Clock (BCLK) of Record Digital Output Port Data Output of Record Digital Output Port
Rev. Pr G | Page 9 of 54
INPUT INPUT INPUT/OUTPUT INPUT INPUT OUTPUT OUTPUT
INPUT/OUTPUT INPUT/OUTPUT INPUT INPUT/OUTPUT INPUT/OUTPUT OUTPUT
803-0045
ADAV804
Pin Number 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 Input/Output INPUT Mnemonic DIRIN ODVDD ODGND DITOUT OAUXLRCLK OAUXBCLK OAUXSDATA IAUXLRCLK IAUXBCLK IAUXSDATA DGND DVDD MCLKI MCLKO XOUT XIN SYSCLK3 SYSCLK2 SYSCLK1 DGND PLL_VDD PLL_GND PLL_LF1 PLL_LF2 ADGND ADVDD VOUTR NC VOUTL NC AVDD AGND FILTD AGND VREF AGND AVDD CAPRN CAPRP AGND CAPLP CAPLN
Preliminary Technical Data
Description Input to Digital Input Receiver (S/PDIF) Interface Digital Voltage Supply Interface Digital Ground S/PDIF Output from DIT Sampling Clock (LRCLK) of Auxiliary Digital Output Port Serial Clock (BCLK) of Auxiliary Digital Output Port Data Output of Auxiliary Digital Output Port Sampling Clock (LRCLK) of Auxiliary Digital Input Port Serial (BCLK) of Auxiliary Digital Input Port Data Input of Auxiliary Digital Input Port Digital Ground Digital Supply Voltage External MCLK Input Oscillator Output Crystal Input Crystal or External MCLK Input System Clock 3 (from PLL 2) System Clock 2 (from PLL 2) System Clock 1 (from PLL 1) Digital Ground Supply for PLL Analog Section. This pin should be connected to AVDD Ground for PLL Analog Section. This pin should be connected to AGND Loop Filter for PLL1 Loop Filter for PLL2 Analog Ground (Mixed Signal) Analog Voltage Supply (Mixed Signal). This pin should be connected to AVDD Right Channel Analog Output No Connect Left Channel Analog Output No Connect Analog Voltage Supply Analog Ground Output DAC Reference Decoupling Analog Ground Voltage Reference Voltage Analog Ground Analog Voltage Supply ADC Modulator Input Filter Capacitor (Right Channel - Negative) ADC Modulator Input Filter Capacitor (Right Channel - Positive) Analog Ground ADC Modulator Input Filter Capacitor (Left Channel - Positive) ADC Modulator Input Filter Capacitor (Left Channel - Negative)
OUTPUT INPUT/OUTPUT INPUT/OUTPUT OUTPUT INPUT/OUTPUT INPUT/OUTPUT INPUT
INPUT OUTPUT INPUT INPUT OUTPUT OUTPUT OUTPUT
OUTPUT OUTPUT
Rev. Pr G | Page 10 of 54
Preliminary Technical Data
(continued from Page 1) Operation of the ADAV804 is controlled via an I2C serial interface, which allows individual Control Register settings to be programmed. The ADAV804 operates from a single analog +3.3 V power supply - and a digital power supply of +3.3 V with optional digital interface range of 3.0 V to +3.6 V. It is housed in
ADAV804
a 64-lead LQFP package and is characterized for operation over the commercial temperature range -40C to 85C.
Rev. Pr G | Page 11 of 54
ADAV804 FUNCTIONAL DESCRIPTION
ADC SECTION
The ADAV804's ADC section is implemented using a 2nd order multi-bit (5-bits) Sigma-Delta modulator. The modulator is sampled at either half the ADC MCLK rate (Modulator Clock = 128 x fS) or a quarter of the ADC MCLK rate (Modulator Clock = 64 x fS). The digital decimator consists of a Sinc^5 filter followed by a cascade of 3 half-band FIR filters. The Sinc decimates by a factor of 16 at 48 kHz and by 8 at 96 kHz. Each of the half-band filters decimates by a factor of 2. Figure 3 below shows the detail of the ADC section. The ADC can be clocked by a number of different clock sources to control the sample rate. MCLK selection for the ADC is set by Internal Clocking Control Register 1 (address = 0x76). The ADC provides an output word of up to 24 bits in resolution in 2s complement format. The output word can be routed to the output ports, to the sample rate converter or to the SPDIF digital transmitter.
DIR PLL(256 x fS) DIR PLL(512 x fS) PLL2 INTERNAL PLL1 INTERNAL
Preliminary Technical Data
Programmable Gain Amplifier (PGA)
The input of the record channel features a PGA which converts the single-ended signal to a differential signal which is applied to the analog sigma-delta modulator of the ADC. The PGA can be programmed to amplify a signal by up to 24dB in 0.5dB increments. Figure 4 details the structure of the PGA circuit.
4 - 64 k External Capacitor (1nF NPO) 125
4 k
CAPxN External Capacitor (1nF NPO) CAPxP To Modulator
801-0005
VREF
125 8 k External Capacitor (1nF NPO)
8 k
Figure 4. PGA Block Diagram
Analog Sigma Delta Modulator
MCLKI
REG: 0x76 BITS 4-2
ADC MCLK DIVIDER
REG: 0x6F BITS 1-0
The ADC features a 2nd order, multi-bit, Sigma-Delta modulator. The input features two integrators in cascade followed by a flash converter. This multi-bit output is directed to a scrambler, followed by a DAC for loop feedback. The Flash ADC output is also converted from "thermometer" coding to "binary" coding for input as a 5-bit word to the decimator. Figure 5 shows the ADC block diagram. The ADC also features independent digital volume control for the left and right channels. The volume control consists of 256 linear steps with each step reducing the digital output codes by 0.39%. Each channel also has a peak detector which records the peak level of the input signal. The peak detector register is cleared by reading it.
XIN
ADC MCLK
Figure 3. Clock Path Control on the ADC
801-0004
ADC
HPF MULTI-BIT SIGMA-DELTA MODULATOR DECIMATOR VOLUME CONTROL
PEAK DETECT
ADC MODCLK
ADC MCLK/2 (TYP 6.144MHz)
SINC^5 384kHz 768kHz
HALFBAND 192kHz FILTER 384kHz
SINC 96kHz COMPENSATION 192kHz
HALFBAND 48kHz 96kHz FILTER
801-0003
Figure 5. ADC Block Diagram
Rev. Pr G | Page 12 of 54
Preliminary Technical Data
Selecting A Sample Rate The sample rate of the ADC is always 256 x fS. To facilitate different MCLKs the ADC block has a programmable divider which allows the MCLK to be divided by 1, 2 or 3 before being applied to the ADC. This allows for MCLKs of 256 x fS , 512 x fS or 768 x fS to be applied to the ADC. To synchronize the data output port with the ADC the same divider setting should be applied to the Internal Clock (ICLK1 or ICLK2) which is controlling the output port. The Internal Clock dividers are shown in Figure 34. By default the modulator runs at ADC MCLK/2. The modulator is designed to run with a maximum clock rate of 6.144MHz,. For cases where higher sample rates would run the modulator at speeds higher than this the user can select divide the ADC MCLK by 4 before it is applied to the modulator. To compensate for this the modulator uses an alternate filter configuration. The divide setting is selected by the AMC bit in ADC Control Register 1.Automatic Level Control (ALC) The ADC record channel features a programmable automatic level control block. This block monitors the level of the ADC output signal and will automatically reduce the gain if the signal at the input pins causes the ADC output to exceed a preset limit. This function can be useful to maximize the signal dynamic range when the input level is not well-defined. The PGA can be used to amplify the unknown signal and the ALC will reduce the gain until the ADC output is within the preset limits. This results in maximum front-end gain. Since the ALC block monitors the output of the ADC the volume control function should not be used. The ADC volume control scales the results from the ADC and any distortion caused by the input signal exceeding the input range of the ADC will still be present at the output of the ADC but scaled by a value determined by the volume control register. The ALC block consists of two functions, Attack Mode and Recovery Mode. The Recovery Mode consists of three settings, namely, No Recovery, Normal Recovery and Limited Recovery. Each of these modes in discussed in detail below. Figure 6 shows an overall flow diagram of the ALC block.
ADAV804
ALC will preserve any gain difference in dB as defined by those registers. At no time will the PGA gains exceed their initial values. Therefore, the initial gain setting also serves as a maximum value. The Limit Detection Mode bit in ALC Control Register 1 determines how the ALC should respond to an ADC output which exceeds the set limits. If this bit is a one then both channels must exceed the threshold before the gain is reduced. This mode can be used to prevent unnecessary gain reduction due to spurious noise on a single channel. If the Limit Detection Mode bit is a zero the gain will be reduced when either channel exceeds the threshold.
No Recovery Mode
By default there is no gain recovery. Once the gain has been reduced it will not be recovered until the ALC has been reset, by toggling the ALCEN bit in ALC Control Register 1 or by writing any value to ALC Control Register 3. The latter option is more efficient as it requires only one write operation to reset the ALC function. No Recovery Mode prevents volume modulation of the signal, caused by adjusting the gain, which can create undesirable artifacts in the signal. Since the gain can be reduced but not recovered, care should be taken that spurious signals do not interfere with the input signal as these may trigger a gain reduction unnecessarily.
Normal Recovery
This mode allows for the PGA gain to be recovered providing that the input signal meets certain criteria. Firstly, the ALC must not be in Attack Mode, i.e., the PGA gain has been reduced sufficiently such that the input signal is below the level set by the Attack Threshold bits. Secondly, the output result from the ADC must be below the level set by the Recovery Threshold bits in ALC Control Register. If both of these criteria are met the gain is recovered by one step (0.5dB). The gain is incrementally restored to its original value assuming the ADC output level is below the Recovery Threshold at intervals determined by the Recovery Time bits. Should the ADC output level exceed the Recovery Threshold while the PGA gain is being restored the PGA gain value will be held and will not continue restoration until the ADC output level is again below the Recovery Threshold. Once the PGA gain is restored to its original value it will not be changed again unless the ADC output value exceeds the Attack Threshold and the ALC then enters Attack Mode. Care should be exercised when using this mode to choose values for the Attack and Recovery thresholds to prevent excessive volume modulation caused by continuous gain adjustments.
Attack Mode
When the absolute value of the ADC output exceeds the level set by the Attack Threshold bits in the ALC Control Register 2, Attack Mode is initiated. The PGA gain for both channels is reduced by one step (0.5dB). The ALC will then wait for a time determined by the Attack Timer bits before sampling the ADC output value again. If the ADC output is still above the threshold the PGA gain is reduced by a further step. This procedure continues until the ADC output is below the limit set by the Attack Threshold bits. The initial gains of the PGAs are defined by ADC Left PGA Gain Register and ADC Right PGA Gain Register and may be different values. The ALC simply adds or subtracts a common gain offset to these values. The
Limited Recovery
Limited Recovery Mode offers a compromise between No Recovery and Normal Recovery Modes. If the output level of the ADC exceeds the Attack Threshold then Attack Mode is
Rev. Pr G | Page 13 of 54
ADAV804
initiated. When Attack Mode has reduced the PGA gain to suitable levels the ALC will attempt to recovery the gain to its original level. If the ADC output level exceeds the level set by the Recovery Threshold bits a counter is incremented (GAINCNTR). This counter is incremented, at intervals equal to the Recovery Time selection, if the ADC has any excursion
Preliminary Technical Data
above the Recovery Threshold. If the counter reaches its maximum value, determined by the GAINCNTR bits in ALC Control Register 1, the PGA gain is deemed suitable and no further gain recovery is attempted. If, at any time, the ADC output level exceeds the Attack Threshold, Attack Mode is reinitiated and the counter is reset
ATTACK MODE WAIT FOR SAMPLE NO IS A RECOVERY MODE ENABLED? YES NO IS SAMPLE GREATER THAN ATTACK THRESHOLD? YES DECREASE GAIN BY 0.5dB AND WAIT ATTACK TIME
LIMITED RECOVERY
NORMAL RECOVERY
WAIT FOR SAMPLE
WAIT FOR SAMPLE
IS SAMPLE ABOVE ATTACK THRESHOLD? NO YES IS SAMPLE BELOW RECOVERY THRESHOLD? NO
IS SAMPLE ABOVE ATTACK THRESHOLD? NO IS SAMPLE BELOW RECOVERY THRESHOLD? YES NO
WAIT RECOVERY TIME INCREASE GAIN BY 0.5dB WAIT RECOVERY TIME INCREMENT GAINCNTR NO HAS GAIN BEEN FULLY RESTORED? YES YES NO NO
WAIT RECOVERY TIME
INCREASE GAIN BY 0.5dB WAIT RECOVERY TIME
HAS GAIN BEEN FULLY RESTORED?
YES
Figure 6. ALC Flow Diagram
Rev. Pr G | Page 14 of 54
801-0127
IS GAINCNTR AT MAXIMUM?
Preliminary Technical Data DAC SECTION
The ADAV804 has two DAC channels arranged as a stereo pair with differential outputs. Each channel has its own independently programmable attenuator, adjustable in 128 steps of 0.375dB per step. The DAC can receive data from the playback or auxiliary input ports, the SRC, the ADC or the DIR. Each analog output pin sits at a dc level of VREF, and swings 1.0 Vrms for a 0dB digital input signal. A single op-amp third-order external low-pass filter is recommended to remove highfrequency noise present on the output pins. Note that the use of op amps with low slew rate or low bandwidth may cause high frequency noise and tones to fold down into the audio band; care should be exercised in selecting these components. The FILTD and FILTR pins should be bypassed by external capacitors to AGND. The FILTD pin is used to reduce the noise of the internal DAC bias circuitry, thereby reducing the DAC output noise. The voltage at the VREF pin, FILTR can be used to bias external op amps used to filter the output signals. For applications where the FILTR is required to drive external op amps which may draw more than 50A or may have dynamic load changes extra buffering should be used to preserve the quality of the ADAV804 reference. The digital input data source for the DAC can be selected from a number of available sources. by programming the appropriate bits in the Datapath Control register. Figure 7 shows how the digital data source and MCLK source for the DAC are selected. Each DAC has an independent volume register giving 256 steps of control with each step giving approximately 0.375dB of attenuation. Each DAC also has a peak level register which records the peak value of the digital audio data. Reading the register clears the peak . Selecting a Sample Rate
ADAV804
Correct operation of the DAC is dependant upon the data rate provided to the DAC, the master clock applied to the DAC and the selected interpolation rate. By default the DAC assumes that the MCLK rate is 256 times the sample rate which requires an 8 times oversampling rate. This combination is suitable for sample rates up to 48kHz. For the case of a 96kHz data rate which has a 24.576MHz MCLK (256 x fS) associated with it the DAC MCLK divider should be set to divide the MCLK by 2. This will prevent the DAC engine being run too fast. To compensate for the reduced MCLK rate the interpolator should be selected to operate in 4 x (DAC MCLK = 128 x fS). Similar combinations can be selected for different sample rates.
DIR PLL(256 x fS) DIR PLL(512 x fS) PLL2 INTERNAL PLL1 INTERNAL
MCLKI
XIN REG: 0x76 BITS 7-5 REG: 0x65 BITS 3-2
MCLK DIVIDER
DAC MCLK
AUXILIARY IN DAC INPUT PLAYBACK DIR ADC REG: 0x63 BITS 5-3
DAC
801-0007
Figure 7. Clock and data Path Control on the DAC
DAC ANALOG OUTPUT DAC MULTI-BIT SIGMA-DELTA MODULATOR
TO CONTROL REGISTERS
PEAK DETECTOR FROM DAC DATAPATH MULTIPLEXER
INTERPOLATOR
VOLUME/MUTE CONTROL
TO ZERO FLAG PINS
ZERO DETECT
801-0006
Figure 8. DAC Block Diagram
Rev. Pr G | Page 15 of 54
ADAV804 SRC FUNCTIONAL OVERVIEW
THEORY OF OPERATION
Asynchronous sample rate conversion is converting data from at the same or different sample rate. The simplest approach to an asynchronous sample rate conversion is the use of a zeroorder hold between the two samplers shown in Figure 9 In an asynchronous system, T2 is never equal to T1 nor is the ratio between T2 and T1 rational. As a result, samples at fS_OUT will be repeated or dropped producing an error in the re-sampling process. The frequency domain shows the wide side lobes that result from this error when the sampling of fS_OUT is convolved with the attenuated images from the sin(x)/x nature of the zero-order hold. The images at fS_IN, dc signal images, of the zero-order holdare infinitely attenuated. Since the ratio of T2 to T1 is an irrational number, the error resulting from the resampling at fS_OUT can never be eliminated. However, the error can be significantly reduced through interpolation of the input data at fS_IN. The sample rate converter in the ADAV804/ is conceptually interpolated by a factor of 220.
IN
Preliminary Technical Data
INTERPOLATE BY N
fS_IN
LOW-PASS FILTER
ZERO-ORDER HOLD
fS_OUT
OUT
TIME DOMAIN OF f S_IN SAMPLES
TIME DOMAIN OUTPUT OF THE LOW-PASS FILTER
TIME DOMAIN OF fS_OUT RESAMPLING
TIME DOMAIN OF THE ZERO-ORDER HOLD OUTPUT
Figure 10. SRC Time Domain
IN
ZERO-ORDER HOLD fS_IN =1/T1 ORIGINAL SIGNAL fS_OUT = 1/T2
OUT
SAMPLED AT fS_IN
In the frequency domain shown in Figure 11, the interpolation expands the frequency axis of the zero-order hold. The images from the interpolation can be sufficiently attenuated by a good low-pass filter. The images from the zero-order hold are now pushed by a factor of 220 closer to the infinite attenuation point of the zero-order hold, which is fS_IN x 220 The images at the zero-order hold are the determining factor for the fidelity of the output at fS_OUT. The worst-case images can be computed from the zero-order hold frequency response, maximum image = sin (x F/fS_INTERP)/(x F/fS_INTERP). F is the frequency of the worst-case image that would be 220 x fS_IN fS_IN/2 , and fS_INTERP is fS_IN x 220. The following worst-case images would appear for fS_IN = 192 kHz: Image at fS_INTERP - 96 kHz = -125.1 dB
SIN(X)/X OF ZER0-ORDER HOLD SPECTRUM OF ZERO-ORDER HOLD OUTPUT
SPECTRUM OF fS_OUT SAMPLING
Image at fS_INTERP + 96 kHz = -125.1 dB
fS_OUT 2 x fS_OUT FREQUENCY RESPONSE OF fS_OUT CONVOLVED WITH ZERO-ORDER HOLD SPECTRUM 801-0008
Figure 9. Zero Order Hold Being Used by fS OUT to Resample Data from fS_IN
CONCEPTUAL HIGH INTERPOLATION MODEL
Interpolation of the input data by a factor of 220 involves placing (220 -1) samples between each fS_IN sample. Figure 10 shows both the time domain and the frequency domain of interpolation by a factor of 220. Conceptually, interpolation by 220 would involve the steps of zero-stuffing (220 -1) number of samples between each fS_IN sample and convolving this interpolated signal with a digital low-pass filter to suppress the images. In the time domain, it can be seen that fS_OUT selects the closest fS_IN x 220 sample from the zero-order hold as opposed to the nearest fS_IN sample in the case of no interpolation. This significantly reduces the re-sampling error.
Rev. Pr G | Page 16 of 54
801-0009
Preliminary Technical Data
IN INTERPOLATE BY N
fS_IN
ADAV804
OUT
LOW-PASS FILTER
ZERO-ORDER HOLD
fS_OUT
FREQUENCY DOMAIN OF SAMPLES AT fS_IN
fS_IN
and the length of the convolution must be scaled. As the input sample rate rises over the output sample rate, the anti-aliasing filter's cutoff frequency has to be lowered because the Nyquist frequency of the output samples is less than the Nyquist frequency of the input samples. To move the cutoff frequency of the antialiasing filter, the coefficients are dynamically altered and the length of the convolution is increased by a factor of (fS_IN/fS_OUT). This technique is supported by the Fourier transform property that if f(t) is F(), then f(k x t) is F(/k). Thus, the range of decimation is simply limited by the size of the RAM.
FREQUENCY DOMAIN OF THE INTERPOLATION
220 x fS_IN
THE SAMPLE RATE CONVERTER ARCHITECTURE
SIN(X)/X OF ZER0-ORDER HOLD FREQUENCY DOMAIN OF f S_OUT RESAMPLING 220 x fS_IN
FREQUENCY DOMAIN AFTER RESAMPLING
220 x fS_IN
Figure 11. Frequency Domain of the Interpolation and Resampling
HARDWARE MODEL
The output rate of the low-pass filter of Figure 10 would be the interpolation rate, 220 x 192000 kHz = 201.3 GHz. Sampling at a rate of 201.3 GHz is clearly impractical, not to mention the number of taps required to calculate each interpolated sample. However, since interpolation by 220 involves zero-stuffing 220-1 samples between each fS_IN sample, most of the multiplies in the low-pass FIR filter are by zero. A further reduction can be realized by the fact that since only one interpolated sample is taken at the output at the fS_OUT rate, only one convolution needs to be performed per fS_OUT period instead of 220 convolutions. A 64-tap FIR filter for each fS_OUT sample is sufficient to suppress the images caused by the interpolation. The difficulty with the above approach is that the correct interpolated sample needs to be selected upon the arrival of fS_OUT. Since there are 220 possible convolutions per fS_OUT period, the arrival of the fS_OUT clock must be measured with an accuracy of 1/201.3 GHz = 4.96 ps. Measuring the fS_OUT period with a clock of 201.3 GHz frequency is clearly impossible; instead, several coarse measurements of the fS_OUT clock period are made and averaged over time. Another difficulty with the above approach is the number of coefficients required. Since there are 220 possible convolutions with a 64-tap FIR filter, there needs to be 220 polyphase coefficients for each tap, which requires a total of 226 coefficients. To reduce the amount of coefficients in ROM, the SRC stores small subset of coefficients and performs a high order interpolation between the stored coefficients. So far the above approach works for the case of fS_OUT > fS_IN. However, in the case when the output sample rate, fS_OUT, is less than the input sample rate, fS_IN, the ROM starting address, input data,
The architecture of the sample rate converter is shown in Figure 12. The sample rate converter's FIFO block adjusts the left and right input samples and stores them for the FIR filter's convolution cycle. The fS_IN counter provides the write address to the FIFO block and the ramp input to the digital servo loop. The ROM stores the coefficients for the FIR filter convolution and performs a high order interpolation between the stored coefficients. The sample rate ratio block measures the sample rate for dynamically altering the ROM coefficients and scaling of the FIR filter length as well as the input data. The digital servo loop automatically tracks the fS_IN and fS_OUT sample rates and provides the RAM and ROM start addresses for the start of the FIR filter convolution.
RIGHT DATA IN LEFT DATA IN ROM A FIFO ROM B ROM C ROM D fS_IN COUNTER DIGITAL SERVO LOOP SAMPLE RATE RATIO FIR FILTER fS_IN fS_OUT SAMPLE RATE RATIO EXTERNAL RATIO L/R DATA OUT
801-0011
801-0010
HIGH ORDER INTERP
Figure 12. Architecture of the Sample Rate Converter
The FIFO receives the left and right input data and adjusts the amplitude of the data for both the soft muting of the sample rate converter and the scaling of the input data by the sample rate ratio before storing the samples in the RAM. The input data is scaled by the sample rate ratio because as the FIR filter length of the convolution increases, so does the amplitude of the convolution output. To keep the output of the FIR filter from saturating, the input data is scaled down by multiplying it by (fS_OUT/fS_IN) when fS_OUT < fS_IN. The FIFO also scales the input data for muting and unmuting of the SRC. The RAM in the FIFO is 512 words deep for both left and right channels. An offset to the write address provided by the fS_IN counter is added to prevent the RAM read pointer from ever overlapping the write address. The minimum offset on the SRC
Rev. Pr G | Page 17 of 54
ADAV804
is 16 samples. However, the Group Delay and Mute In register can be used to increase this offset. The number of input samples added to the write pointer of the FIFO on the SRC is 16 + Bits 6-0 of the Group Delay register. This feature is useful in varispeed applications in order to prevent the read pointer to the FIFO running ahead of the write pointer. When set, bit 7 of the Group Delay and Mute In register will soft mute the sample rate. Increasing the offset of the write address pointer is useful for applications when small changes in the sample rate ratio between fS_IN and fS_OUT are expected. The maximum decimation rate can be calculated from the RAM word depth and the group delay as (512-16)/64 taps = 7.75 for short group delay and (51264)/64 taps = 7 for long group delay. The digital servo loop is essentially a ramp filter that provides the initial pointer to the address in RAM and ROM for the start of the FIR convolution. The RAM pointer is the integer output of the ramp filter while the ROM is the fractional part. The digital servo loop must be able to provide excellent rejection of jitter on the fS_IN and fS_OUT clocks as well as measure the arrival of the fS_OUT clock within 4.97 ps. The digital servo loop will also divide the fractional part of the ramp output by the ratio of fS_IN/fS_OUT for the case when fS_IN > fS_OUT, to dynamically alter the ROM coefficients. The digital servo loop is implemented with a multi-rate filter. To settle the digital servo loop filter more quickly upon startup or a change in the sample rate, a "fast mode" was added to the filter. When the digital servo loop starts up or the sample rate is changed, the digital servo loop kicks into "fast mode" to adjust and settle on the new sample rate. Upon sensing the digital servo loop settling down to some reasonable value, the digital servo loop will kick into "normal" or "slow mode." During "fast mode" the MUTE_OUT bit in the Sample Rate Error register is asserted to let the user know clicks or pops may be present in the digital audio data. The output of the SRC can be muted, by asserting bit 7 of the Group Delay & Mute register until the SRC has changed to "slow mode". The MUTE_OUT bit can be set to generate an interrupt when the SRC changes to "slow mode" indicating that the data will be sample rate converted accurately. The frequency response of the digital servo loop for "fast mode" and "slow mode" are shown in Figure 14. The FIR filter is a 64-tap filter in the case of fS_OUT fS_IN and is (fS_IN/fS_OUT) x 64 taps for the case when fS_IN > fS_OUT. The FIR filter performs its convolution by loading in the starting address of the RAM address pointer and the ROM address pointer from the digital servo loop at the start of the fS_OUT period. The FIR filter then steps through the RAM by decrementing its address by 1 for each tap, and the ROM pointer increments its address by the (fS_OUT/fS_IN) x 220 ratio for fS_IN > fS_OUT or 220 for fS_OUT fS_IN. Once the ROM address rolls over, the convolution is completed. The convolution is performed for both the left and right channels, and the multiply accumulate circuit used for the convolution is shared between the channels. The fS_IN/fS_OUT
Preliminary Technical Data
sample rate ratio circuit is used to dynamically alter the coefficients in the ROM for the case when fS_IN >fS_OUT. The ratio is calculated by comparing the output of an fS_OUT counter to the output of an fS_IN counter. If fS_OUT >fS_IN, the ratio is held at one. If fS_IN > fS_OUT, the sample rate ratio is updated if it is different by more than two fS_OUT periods from the previous fS_OUT to fS_IN comparison. This is done to provide some hysteresis to prevent the filter length from oscillating and causing distortion.
PLLINT1 REG: 0x76 BIT 1
801-0012
10 0 -10 -20 -30 -40 -50 -60 -70 -80
SLOW MODE FAST MODE
Figure 13. Clock and Data Path Control on the SRC
PLLINT2 DIR PLL (256 x fS) DIR PLL (512 x fS) SRC MCLK
MCLKI REG: 0x76 BIT 0
XIN ICLK1
SRC
SRC OUTPUT
ICLK2
REG: 0x00 BITS 1-0
AUXILIARY IN SRC INPUT PLAYBACK DIR ADC REG: 0x62 BITS 7-6
MAGNITUDE - dB
-90 -100 -110 -120 -130 -140 -150 -160 -170 -180 -190 -200
801-0013
-210 -220 0.01 0.1 1 10 FREQUENCY - Hz 100 1e3 1e4 1e5
Figure 14. Frequency Response of the Digital Servo Loop. fS_IN is the X-Axis, fS_OUT = 192 KHz, Master Clock is 30 MHz
PLL SECTION
The ADAV804 features a dual PLL configuration to generate independent system clocks for asynchronous operation. Figure 17 shows the block diagram of the PLL section. The PLL generates the internal and system clocks from a 27MHz clock. This clock is generated either by a crystal connected between XIN and XOUT, as shown in Figure 15 or from an external
Rev. Pr G | Page 18 of 54
Preliminary Technical Data
clock source connected directly to XIN. A 54MHz clock can also be used if the internal clock divider is used. Both PLLs (PLL1 and PLL2) can be programmed independently and cater for a range of sampling rates (32/44.1/48 kHz) with selectable system clock oversampling rates of 256 and 384. Higher oversampling rates can also be selected by enabling the doubling of the sampling rate to give 512 or 768 x fS ratios. Note that this option also allows oversampling ratios of 256 or 384 at double sample rates of 64/88.2/96 kHz. The PLL outputs can be routed internally to act as clock sources for the other component blocks such as the ADC, DAC etc. The outputs of the PLLs are also available on the three SYSCLK pins. Figure 18 shows how the PLLs can be configured to provide the sampling clocks.
C XTAL C
ADAV804
Table 19. PLL Frequency Selection Options
PLL 1 Sample Rate (fS) 32/44.1/48 kHz 64/88.2/96 kHz 32/44.1/48 kHz 64/88.2/96 kHz Same as fS selected for PLL 2A MCLK Selection Normal fS 256/384xfS Double fS 512/768xfS 256/384xfS 512/768xfS 256/384xfS
2A 2B
256/384xfS 512xfS 512xfS
Figure 15. Crystal Connection
The PLLs require a some external components to operate correctly. These components, shown in Figure 16 form a loop filter which integrates the current pulses from a charge pump and produces a voltage which is used to tune the VCO. Good quality capacitors, such as PPS film, are recommended .Figure 17 shows a block diagram of the PLL section including master clock selection. Figure 18 shows how the clock frequencies at the clock output pins, SYSCLK1-3 and the internal PLL clock values, PLL1 and PLL2 are selected. The clock nodes, PLL1 and PLL2, can be used as master clocks for the other blocks in the ADAV804 such as the DAC or ADC. The PLL has separate supply and ground pins and these should be as clean as possible to prevent electrical noise being converted into clock jitter by coupling onto the loop filter pins.
XOUT
XIN
801-0017
AVDD 33nF 1.8nF 732 PLL_LFx
PLL BLOCK
801-0014
Figure 16. PLL L F
PLL_LF1
REG: 0x78 BIT 6 /2 REG: 0x74 BIT 4 PHASE DETECTOR & LOOP FILTER
XIN
VCO
OUTPUT SCALER N1
SYSCLK1
PLL1
N DIVIDER
XOUT MCLKO MCLKI
REG: 0x74 BIT 5 /2 REG: 0x78 BIT 7 PHASE DETECTOR & LOOP FILTER
VCO
OUTPUT SCALER N2
SYSCLK2
PLL2
N DIVIDER OUTPUT SCALER N3
SYSCLK3
801-0015
PLL_LF2
Figure 17. PLL Section Block Diagram
Rev. Pr G | Page 19 of 54
ADAV804
PLL1 MCLK PLL2 MCLK
Preliminary Technical Data
48 kHz 32 kHz 44.1 kHz
REG: 0x75 BITS 3-2
REG: 0x75 BIT 0 x2 FS1 REG: 0x77 BIT 0 /2
PLL1
SYSCLK1
256 384
REG: 0x75 BIT 1
PLLINT1
256 384
REG: 0x75 BIT 5
REG: 0x75 BIT 4 x2 FS2
PLL2
SYSCLK2
48 kHz 32 kHz 44.1 kHz 256 512
REG: 0x75 BITS 7-6
REG: 0x77 BITS 2-1 /2 /2 FS3 PLLINT2
REG: 0x74 BIT 0
SYSCLK3
801-0016
Figure 18. PLL Clocking Scheme
SPDIF TRANSMITTER AND RECEIVER The ADAV804 contains an integrated SPDIF transmitter and receiver. The transmitter consists of a single output pin, DITOUT, on which the biphase encoded data appears. The SPDIF transmitter source can be selected from the different blocks making up the ADAV804. Additionally the clock source for the SPDIF transmitter can be selected from the various clock sources available in the ADAV804. The receiver uses two pins, DIRIN and DIR_LF. DIRIN accepts the SPDIF input data stream. The DIRIN pin can be configured to accept a digital input level as defined by Table 13 or an input signal with a peak to peak level of 200mV minimum as defined by the IEC60958-3 specification. DIR_LF is a loop filter pin required by the internal PLL which is used to recover the clock from the SPDIF data stream. The components shown in Figure 22 form a loop filter which integrates the current pulses from a charge pump and produces a voltage which is used to tune the VCO of the clock recovery PLL. The recovered audio data and audio clock can be routed to the different blocks of the ADAV801 as required. Figure 19shows a conceptual diagram of the DIRIN block.
REG: 0x74 BIT 4
ADC DIR PLAYBACK AUXILIARY IN SRC REG: 0x63 BITS 2-0 DIT INPUT
DIT
801-0021
DITOUT
Figure 20. Digital Output Transmitter Block Diagram
DIRIN
Audio Data
DIR
Recovered Clock
801-0022
Figure 21. Digital Input Receiver Block Diagram
C1 SPDIF
DIRIN SPDIF RECEIVER
DC LEVEL
COMPARATOR
801-0128
1External Capacitor is only required for variable level SPDIF inputs
Figure 19. DIRIN Block
Rev. Pr G | Page 20 of 54
Preliminary Technical Data
PREAMBLES
ADAV804
AVDD + 2.2F 82nF 750 DIR_LF
X LEFT CH Y RIGHT CH Z LEFT CH Y RIGHT CH X LEFT CH Y RIGHT CH SUBFRAME
801-0023
SUBFRAME FRAME 1
FRAME 191
FRAME 0
Figure 25. Preambles, Frames and Subframes
Figure 22. DIR loop Filter Components
Serial Digital Audio Transmission Standards The ADAV804 can receive and transmit SPDIF, AES/EBU and IEC-958 serial streams. SPDIF is a consumer audio standard and AES/EBU is a professional audio standard. IEC-958 has both consumer and professional definitions. This data sheet is not intended to fully define or to provide a tutorial for these standards, please contact the international standards setting bodies for the full specifications. All of these digital audio serial communication schemes encode audio data and audio control information using the biphasemark method. This encoding method minimizes the dc content of the transmitted signal. As can be seen from Figure 23 ones in the original data end up with midcell transitions in the biphasemark encoded data, while zeros in the original data do not. Note that the biphase-mark encoded data always has a transition between bit boundaries.
CLOCK (2 TIMES BIT RATE)
The biphase-mark encoding violations are shown in Figure 26. Note that all three preambles include encoding violations. Ordinarily, the biphase-mark encoding method results in a polarity transition between bit boundaries.
1 PREAMBLE X 1 PREAMBLE Y 1 PREAMBLE Z 1 1 0 1 0 0 0
801-0028
1
1
0
0
0
1
0
1
1
0
0
1
0
0
Figure 26. Preambles
0
1
1
1
0
0
DATA
801-0024
BIPHASE-MARK DATA
Figure 23. Biphase-Mark Encoding
Digital audio communication schemes use "preambles" to distinguish between channels (called "subframes") and between longer term control information blocks (called "frames"). Preambles are particular biphase-mark patterns, which contains encodeing violations that allow the receiver to uniquely recognize them. These patterns, and their relationship to frames and subframes, are shown in Figure 24 and Figure 25.
BIPHASE PATTERNS X Y Z 11100010 OR 00011101 11100100 OR 00011011 11101000 OR 00010111 LEFT RIGHT LEFT AND C.S. BLOCKSTART CHANNEL
801-0025
The serial digital audio communication scheme are organized using a frame and subframe construction. There are two subframes per frame (ordinarily the left and right channel). Each subframe includes the appropriate four bit preamble, up to 24 bits of audio data, a "validity" (V) bit, a "user" (U) bit, a "channel status" (C) bit and an even "parity" (P) bit. The channel status bits and the user bits accumulate over many frames to convey control information. The channel status bits accumulate over a 192 frame period (called a channel status block). The user bits accumulate over 1176 frames when the interconnect is implementing the so-called "subcode" scheme (EIAJ CP-2401). The organization of the channel status block, frames and subframes are shown in Figure 27 and Figure 28.
Data Bits Address
N N+1 N+2 N+3 N+4 7 6 5 4 Emphasis Category Code Channel Number Reserved Clock Accuracy Source Number Sampling Frequency
801-0029
3
2 Copyright
1 NonAudio
0 Pro/Con =0
Channel Status
Reserved
Word Length
Figure 24. Biphase-Mark Encoded Preambles
(N+5) to Reserved (N+23) N = 0x20 for Receiver Channel Status Buffer N = 0x38 for Transmitter Channel Status Buffer
Figure 27. Consumer
Rev. Pr G | Page 21 of 54
801-0026
DIR BLOCK
ADAV804
Data Bits Address
N N+1 N+2 N+3 N+4 N+5 N+6 N+7 N+8 N+9 N+10 N+11 N+12 N+13 N+14 N+15 N+16 N+17 N+18 N+19 N+20 N+21 N+22 N+23 fs Scaling 7 6 5 Lock 4 3 Emphasis 2 1 NonAudio Channel Mode Use of Auxiliary Mode Sample Bits 0 Pro/Con =1
Preliminary Technical Data
Receiver Section The ADAV804 uses a double buffering scheme to handle reading Channel Status and User bit information. The Channel Status bits are available as a memory buffer taking up 24 consecutive register locations. The User bits are read using an indirect memory addressing scheme where the Receiver User Bit Indirect Address register is programmed with an offset to the User bit buffer and the Receiver User Bit Data register can be read to determine the User bits at that location. Reading the Receiver User Bit Data register automatically updates the Indirect Address Register to the next location in the buffer. Typically the Receiver User Bit Indirect Address register is programmed to zero, the start of the buffer, and the Receiver User Bit Data register is read repeatedly until all the buffers data has been read. Figure 29 and Figure 30 shows how receiving the Channel Status and User bits is implemented.
DIRIN CHANNEL STATUS A (24 X 8 BITS) CHANNEL STATUS B (24 X 8 BITS)
SECOND BUFFER
801-0031
Sample Frequency
User Bit Management Alignment Level Source Word Length
Channel Identification Sample Frequency (fs) Reserved Alphanumeric Channel Origin Data - First Character Alphanumeric Channel Origin Data Alphanumeric Channel Origin Data Alphanumeric Channel Origin Data - Last Character Alphanumeric Channel Destination Data - First Character Alphanumeric Channel Destination Data Alphanumeric Channel Destination Data Alphanumeric Channel Destination Data - Last Character Local Sample Address Code - LSW Local Sample Address Code Local Sample Address Code Local Sample Address Code - MSW Time Of Day Code - LSW Time Of Day Code Time Of Day Code Time Of Day Code - MSW
801-0030
Reserved
Digital Audio Reference Signal
SPDIF RECEIVE BUFFER
FIRST BUFFER
RECEIVE CS BUFFER (0x20-0x37)
RxCSSWITCH
Figure 29. Channel Status Buffer
SPDIF IN
Reliability Flags
Reserved
0.....7 8.....15 16.....23
0.....7 8.....15 16.....23
Cyclic Redundancy Check Character (CRCC_
N = 0x20 for Receiver Channel Status Buffer N = 0x38 for Transmitter Channel Status Buffer
ADDRESS = 0x50 RECEIVER USER BIT INDIRECT ADDRESS REGISTER ADDRESS = 0x51 RECEIVER USER BIT DATA REGISTER
801-0032
Figure 28. Professional
FIRST BUFFER
USER BIT BUFFER
The standards allow for the channel status bits in each subframe to be independent, but ordinarily the channel status bit in the two subframes of each frame are the same. The channel status bits are defined differently for the consumer audio standards and the professional audio standards. The 192 channel status bits are organized into 24 bytes and have the interpretations shown in Figure 27 and Figure 28. The SPDIF transmitter and receiver have a comprehensive register set. The registers give the user full access to the functions of the SPDIF block such as detecting non-audio and validity bits, Q subcodes, preambles etc. The channel status bits as defined by the IEC60958 and AES3 specification are stored in register buffers for ease of use. An autobuffering function allows for channel status and user bits read by the receiver to be copied directly to the transmitter block removing the need for user intervention.
Figure 30. Receiver User Bit Buffer
The SPDIF receive buffer is updated continuously by the incoming SPDIF stream and once all of the channel status bits for the block, 192 for channel A and 192 for channel B, are received the bits are copied into the receiver channel status buffer. This buffer stores all 384 bits of channel status information and the RxCSSWITCH bit in the Channel Status Switch Buffer register determines whether the channel A or channel B status bits are required to be read. The receive channel status bit buffer is 24 bytes long and spans the address range from 0x20 to 0x37. Since the Channel Status bits of an SPDIF stream rarely change a software interrupt/flag bit, RxCSBINT is provided to notify the host control that either a new block of channel status bits is available or that the first 5 bytes of channel status information
Rev. Pr G | Page 22 of 54
Preliminary Technical Data
have changed from a previous block. The function of the RxCSBINT is controlled by the RxBCONF3 bit in the Receiver Buffer Configuration Register. The size of the User bit buffer can be set using by programming the RxBCONF0 bit in the Receiver Buffer Configuration register as shown in Table 20. Table 20. RxBCONF3 Functionality
RxBCONF0 0 1 Receiver User Bit Buffer Size 384 bits with Preamble Z as the start of the block 768 bits with Preamble Z as the start of the block
ADAV804
96 IUs. The first 10 bytes, 80 bits, of the Q subcode contain information sent by CD, MD and DAT systems. The last 16 bits of the Q subcode are used to perform a CRC check of the Q subcode. If an error occurs in the CRC check of the Q subcode, the QCRCERROR bit will be set. This is a sticky bit and will remain high until the register is read.
Transmitter Operation
The SPDIF transmitter has a similar buffer structure to the receive section. The transmitter Channel Status buffer occupies 24 bytes of the register map. This buffer is long enough to store the 192 bits required for one channel of Channel Status information. Setting the TxCSSWITCH bit determines if the data loaded to the Transmitter Channel Status buffer is intended for channel A or channel B. In most cases the channel status bits for channel A and channel B are the same in which case setting the Tx_A/B_Same bit will read the data from the Transmitter Channel Status buffer and transmit it on both channels. Since the Channel Status information is rarely changed during transmission the information contained in the buffer is transmitted repeatedly. The Disable_Tx_Copy bit can be used to prevent the Channel Status bits from being copied from the Transmitter CS Buffer into the SPDIF Transmitter buffer until the user has finished loading the buffers. This feature is typically used if the channel A and channel B data is different. Setting the bit will prevent the data being copied and clearing the bit will allow the data to be copied and then transmitted. Figure 31 shows how the buffers are organized.
DITOUT CHANNEL STATUS A (24 X 8 BITS) CHANNEL STATUS B (24 X 8 BITS)
The updating of the User bit buffer is controlled by bits RxBCONF2-1 and bits 7 to 4 of the Channel Status as shown in Table 21 and Table 22. Table 21. RxBCONF2-1 Functionality
RxBCONF Bit 2 Bit 1 0 0 0 1 1 0 Receiver User Bit Buffer Configuration
User bits are ignored Update second buffer when first buffer is full Format according to byte 1, bits 4-7 if PRO bit is set. Format according to IEC60958-3 if PRO bit is clear
Table 22. Automatic User Bit Configuration
Bits 7 0 0 1 6 0 1 0 5 0 0 0 4 0 0 0 Automatic Receiver User Bit Buffer Configuration User Bits are ignored AES-18 format, the User bit buffer is treated in the same way as when RxBCONF2-1 = 0b01 User bit buffer is updated in the same way as when RxBCONF2-1 = 0b01 and RxBCONF0 = 0b00 User defined format, the User bit buffer is treated in the same way as when RxBCONF2-1 = 0b01
TRANSMIT CS BUFFER (0x38-0x4F) TxCSSWITCH
1
1
0
0
Figure 31. Transmitter Channel Status Buffer
When the User bit buffer has been filled, the RxUBINT interrupt bit in the Interrupt Status register will be set, provided that the RxUBINT Mask bit is set, to indicate that the buffer has new information and can be read. For the special case when the user data is formatted according to the IEC60958-3 standard into messages made of of information units, called IUs, the zeros stuffed between each IU and each message are removed and only the IUs are stored. Once the end of the message is sensed, by more that 8 zeros between IUs, the User bit buffer is updated with the complete message and the first buffer begins looking for the start of the next message. Each IU is stored as a byte consisting of 1, Q, R, S, T, U, V and W bits (see the IEC60958-3 specification for more information). For the case where 96IUs are received, the Q subcode of the IUs is stored in the Q subcode buffer consisting of 10 bytes. The Q subcode is the Q bits taken from each of the
As with the receiver section the transmitted User bits are also double buffered. This is required since, unlike the Channel Status bits, the User bits do not necessarily repeat themselves. The User bits can be buffered in various configuration as Table 23. Transmission of the user bits is determined by the state of the BCONF3 bit. If the bit is 0 the user bits will begin transmitting straight away without alignment to the Z preamble. If this bit is 1 the User bits will not start transmitting until a Z preamble occurs when the TxBCONF2-1 bits are 01.
Rev. Pr G | Page 23 of 54
801-0033
SPDIF TRANSMIT BUFFER
ADAV804
Table 23. Transmitter User Bit Buffer Configurations
TxBCONF21 Bit2 Bit1 0 0 0 1 1 0 Transmitter User Bit Buffer Configuration
Preliminary Technical Data
respectively. When the receiver and transmitter are running at the same sample rate the transmitted Channel Status and User bits will be the same as the received Channel Status and User bits. However in many systems it is likely that the receiver and transmitter will not be running at the same frequency. When the transmitter sample rate is higher than receiver sample rate, the Channel Status and User bit block may be repeated sometimes. When the transmitter sample rate is lower than the receiver sample rate, the Channel Status and User bit blocks may be dropped. Since the first 5 bytes of the Channel Status are, typically, constant the can be repeated or dropped and no information is lost. However, if the PRO bit in the channel status is set and the local sample address code and time of day code bytes contain information, these bytes may be repeated or dropped in which case information can be lost. It is up to the user to determine how to handle this case. In the case of the user bits being transmitted according to the IEC60958-3 format the messages contained in the user bits can still be sent without dropping or repeating messages. Since zero-stuffing is allowed between IUs and messages, zeros can be added or subtracted to preserve the messages. For the case when the transmitter sample rate is greater than the receiver sample rate extra zeros are stuffed between the messages. When the sample rate of the transmitter is less than the sample rate of the receiver, the zeros stuffed between the messages will be subtracted. If there is not enough zeros between the messages to be subtracted, the zeros between IUs will be subtracted as well. The Zero_Stuff_IU bit in the Autobuffer register enables zeros to be added or subtracted between messages. Interrupts The ADAV804 provides interrupt bits to indicate the presence of certain conditions which may require attention. Reading the Interrupt Status register will allow the user to determine if any of the interrupts have be asserted. The bits of the Interrupt Status register will remain high, if set, until the register is read. Two bits, SRCError and RxError indicate interrupt conditions in the sample rate converter and an SPDIF receiver error respectively. Both of these condition require a read of the appropriate error register to determine the exact cause of the interrupt. Each interrupt in the Interrupt Status register has an associated mask bit in the Interrupt Status Mask register. The interrupt mask bit must be set for the corresponding interrupt to be generated. This feature allows the user to determine which functions should be responded to. The dual function pin ZEROL/INT can be set to indicate the presence of no audio data on the left channel or the presence of an interrupt being set in the Interrupt Status register. The function of this pin is selected by the INTRPT bit in DAC Control Register 4 as shown in Table 25.
1
1
Zeros are transmitted for the User bits Host writes User bits to the buffer until it is full Write the user bits to the buffer in IUs specified by IEC60958-3 and transmit them according to the standard The first 10 bytes of the user bit buffer is configured to store a Q subcode Buffer Size 384 bits with Preamble Z as the start of the block 768 bits with Preamble Z as the start of the block
Table 24. Transmitter User Bit Buffer Size
TxBCONF0 0 1
The transmit buffers can notify the host or micro-controller when the first user bit buffer has been updated and when the second transmit user bit buffer is full using sticky bits and interrupts. The sticky bit TxUBINT, is set when the transmit user buffer has been updated and the second transmit user bit buffer is ready to accept new user bits. The sticky bit, TxFBINT, is set whenever the second transmit user bit buffer is full and any new writes to this buffer will be ignored until the first transmit buffer is updated. These two bits are located in the Interrupt Status register. When the host reads the Interrupt Status register these bits will be cleared. Interrupts for the TxUBINT and TxFBINT sticky bits can be enabled by setting the TxUBMASK and TxFBMASK bits respectively in the Interrupt Status Mask register.
SPDIF OUT
ADDRESS = 0x52 TRANSMITTER USER BIT INDIRECT ADDRESS REGISTER ADDRESS = 0x53 TRANSMITTER USER BIT DATA REGISTER
0.....7 8.....15 16.....23
0.....7 8.....15 16.....23
USER BIT BUFFER
SECOND BUFFER
801-0034
Figure 32.Transmitter User Bit Buffer
Autobuffering The ADAV804 SPDIF receiver and transmitter sections have an autobuffering mode allowing the Channel Status and User bits to be copied automatically from the receiver to the transmitter without user intervention. The Channel Status and User bits can be independently selected for autobuffering using the Auto_CSBits and Auto_UBits bits in Autobuffer register
Rev. Pr G | Page 24 of 54
Preliminary Technical Data
Table 25. ZEROL/INT Pin Functionality
INTRPT 0 1 Pin Functionality The pin functions as a ZEROL flag pin The pin functions as an interrupt pin
ADAV804
CLOCKING SCHEME
The ADAV804 provides a flexible choice of on-chip and offchip clocking sources. The on-chip oscillator with dual-PLLs is intended to offer complete system clocking requirements for use with available MPEG encoders, decoders or combination codecs. The oscillator function is designed for generation of a 27 MHz video clock from a 27 MHz crystal connected between XIN and XOUT pins. Capacitors are also required to be connected between these pins and DGND as shown in Figure 15. The capacitor values should be specified by the crystal manufacturer. A square-wave version of the crystal clock is output on the MCLKO pin. If the system has 27MHz clock available this can be connected directly to the XIN pin.
SERIAL DATA PORTS
The ADAV804 contains four flexible serial ports (SPORTs) to allow data transfer to and from the codec. All four SPORTs are independent and can be configured as master or slave ports. In Slave Mode the xLRCLK and xBCLK signals are inputs to the serial ports. In Master Mode, the serial port generates the xLRCLK and xBCLK signals. The master clock for the SPORT can be selected from a number of sources, as shown in Figure 34 and care should be taken to ensure that the clock rate is appropriate for whatever block is connected to the serial port. For example if the ADC is running from the MCLKI input at 256 x fS then the master clock for the SPORT should also run run from the MCLKI input to ensure that the ADC and serial port are synchronised.. The SPORTs can be set to transmit or receive data in I2S, Left Justified or Right Justified formats with different word lengths by programming the appropriate bits in the Playback, Auxiliary Input Port, Record and Auxiliary Output Port Control Registers. Figure 33 shows a timing diagram of the serial data port formats.
DATA PATH
The ADAV804 features a Digital Input/Output switching/multiplexing matrix which gives flexibility to the range of possible Input and Output connections. Digital Input ports include Playback and Auxiliary Input - both 3-wire digital - and S/PDIF (single wire to the on-chip receiver). Output ports include the Record and Auxiliary Output ports - both 3-wire digital - and the S/PDIF port (single wire from the on-chip transmitter). Internally the DIR and DIT are interfaced via 3wire interfaces. The data path for each input and output port is selected by programming Datapath Control Registers 1 and 2. Figure 35 shows the internal data path structure of the ADAV804.
LRCLK BCLK SDATA MSB
LEFT CHANNEL
RIGHT CHANNEL
LSB
MSB
LSB
LEFT-JUSTIFIED MODE - 16 BITS TO 24 BITS PER CHANNEL
LRCLK BCLK SDATA MSB
LEFT CHANNEL
RIGHT CHANNEL
LSB I2S
MSB
LSB
MODE - 16 BITS TO 24 BITS PER CHANNEL
LRCLK BCLK SDATA MSB
LEFT CHANNEL
RIGHT CHANNEL
LSB
MSB
LSB
801-0018
RIGHT-JUSTIFIED MODE - SELECT NUMBER OF BITS PER CHANNEL
Figure 33. Serial Data Modes
Rev. Pr G | Page 25 of 54
ADAV804
REG: 0x76 BITS 4-2
Preliminary Technical Data
ADC
MCLK DIR PLL (512 x fS) DIR PLL (256 x fS) PLLINT1 PLLINT2 MCLKI XIN OUTPUT PORT OLRCLK OBCLK OSDATA
ICLK1 ICLK2 PLL CLOCK
REG:0x06 BITS 4-3
REG: 0x76 BITS 7-5
DAC
MCLK
DIR PLL (512 x fS) DIR PLL (256 x fS) PLLINT1 PLLINT2 MCLKI XIN
REG: 0x77 BITS 4-3
INPUT PORT
ILRCLK IBCLK ISDATA
ICLK1 ICLK2 PLL CLOCK
REG:0X04 BITS 4-3
SRC
REG: 0x00 BITS 3-2 REG: 0x00 BIT 1-0
MCLKI XIN PLLINT1 PLLINT2 MCLKI XIN PLLINT1 PLLINT2
REG: 0x76 BITS 1-0
MCLK
ICLK1 DIVIDER DIR PLL (512 x fS) DIR PLL (256 x fS) DIVIDER
REG: 0x00 BITS 4-5
DIVIDER
801-0019
REG: 0x00 BITS 1-0
ICLK2
Figure 34. Sport Clocking Scheme
PLL OSCILLATOR
RECORD DATA OUTPUT
ADC AUX DATA OUTPUT
REFERENCE SRC DAC DIT
DIR
Figure 35. Data Path
INTERFACE CONTROL
The ADAV804 has a dedicated control port to allow the internal registers of the ADAV804 to be accessed. Each of the internal registers is 8 bits wide. Where bits are described as reserved (RES) these bits should be programmed as zero. I2C Interface The I2C interface of the ADAV804 is a two wire interface consisting of a clock line, SCL and a data line, SDA. SDA is bidirectional and the ADAV804 will drive SDA either to acknowledge the master, ACK, or to send data during a read operation. The SDA pin for the I2C port is an open drain
collector and requires a 1K pullup resistor. A write or read access occurs when the SDA line is pulled low while the SCL line is high indicated by START in the timing diagrams. SDA is only allowed to change when SCL is low except when a START or STOP condition occurs as shown in figures 36 and 37. The first eight bits of the access consist of the device address and the R/W bit. The device address consists of an internal built-in address (0b00100) and two address pins, AD1 and AD0. The two address pins allow up to four ADAV804s to be used in a system. Initiating a write operation to the ADAV804 involves sending a START condition and then sending the device address with the R/W set low. The ADAV804 will respond by issuing an ACK to indicate that it has been addressed. The user
Rev. Pr G | Page 26 of 54
801-0020
CONTROL REGISTERS
PLAYBACK DATA INPUT
AUX DATA INPUT
Preliminary Technical Data
then sends a second frame telling the ADAV804 which register is required to be written to. The 7 bit register address is left shifted to make the 8 bits that the frame requires. Another ACK is issued by the ADAV804. Finally the user can send another frame with the 8 data bits required to be written to the register. A third ACK is issued by the ADAV804 after which the user can send a STOP condition to complete the data transfer. A read operation requires that the user first write to the ADAV804 to point to the correct register and then read the data. This is achieved by sending a START condition followed
SCK
ADAV804
by the device address frame, with R/W low, and then the register address frame. Following the ACK from the ADAV804 the user must issue a REPEATED START condition. This is identical to a START condition. The next frame is the device address with R/W set high. On the next frame the ADAV804 will output the register data on the SDA line. A STOP condition completes the read operation. Figure 38 and Figure 39 show examples of writing to and reading from the DAC Left Volume Register (address = 0b1101000)
SDA START BY MASTER
0
0
1
0
0
AD1
AD0
R/W ACK. BY ADAV803
1
1
0
1
0
0
0
X ACK. BY ADAV803
FRAME 1 CHIP ADDRESS BYTE
FRAME 2 REGISTER ADDRESS BYTE
SCK (CONTINUED)
SDA (CONTINUED)
D7
D6
D5
D4
D3
D2
D1
D0 ACK. BY STOP BY ADAV803 MASTER
FRAME 3 DATA BYTE TO ADAV803
Figure 38. Writing to the ADAV804 inI2C
SCL
SDA START BY MASTER
0
0
1
0
0
AD1
AD0
R/W ACK. BY ADAV803/4
1
1
0
1
0
0
0
X ACK. BY ADAV803
FRAME 1 CHIP ADDRESS BYTE SCL (Continued) SDA (Continued)
FRAME 2 REGISTER ADDRESS BYTE
803-0039
0
0
1
0
0
AD1
AD0
R/W ACK. BY ADAV803/4
D7
D6
D5
D4
D3
D2
D1
D0 ACK. BY ADAV803
REPEATED START BY MASTER FRAME 3 CHIP ADDRESS BYTE
FRAME 4 REGISTER DATA
STOP BY MASTER
Figure 39. Reading From the DAC Leeft VolumeRegister in I2C
Block Reads and Writes The ADAV804 provides the user with the ability to write to or read from a block of registers in one continuous operation. To use this feature the user simply has to continue providing data frames before the STOP condition. For a write operation the Register Address is automatically incremented with each additional frame and the register data is written to that register
address. For a read operation the Register Address is automatically incremented with each additional frame and the register data is clocked out on that frame. Care should be exercised when using the block read or block write modes. For most cases block reading, or writing to, a register will automatically increment the register address to point to the next register. The exceptions to this case are the indirect memory address registers, Transmitter User Bit and Receiver User Bit
Rev. Pr G | Page 27 of 54
803-0040
ADAV804
data buffers. Using a block read or write to access these registers will not update the absolute register address but rather will
Preliminary Technical Data
update the buffer address to provide the next value in the buffer.
Rev. Pr G | Page 28 of 54
Preliminary Technical Data
Table 26. SRC & Clock Control Register
SRCDIV1 7 ADDRESS = 0000000 SRCDIV1-0 SRCDIV 6 CLK2DIV1 5 CLK2DIV0 4 CLK1DIV1 3 CLK1DIV0 2 MCLKSEL1 1
ADAV804
MCLKSEL0 0
CLK2DIV1-0
CLK1DIV1-0
MCLKSEL1-0
Divides the SRC Master Clock 00 = The SRC Master Clock is not divided 01 = The SRC Master Clock is divided by 1.5 10 = The SRC Master Clock is divided by 2 11= The SRC Master Clock is divided by 3 Clock Divider for Internal Clock 2 (ICLK2) 00 = Divide by 1 01 = Divide by 1.5 10 = Divide by 2 11 = Divide by 3 Clock Divider for Internal Clock 1 (ICLK1) 00 = Divide by 1 01 = Divide by 1.5 10 = Divide by 2 11 = Divide by 3 Clock Selection for the SRC Master Clock 00 = Internal Clock 1 01 = Internal Clock 2 10 = PLL Recovered Clock (512 x fS) 11 = PLL Recovered Clock (256 x fS)
Table 27. SPDIF Loopback Control Register
RES 7 ADDRESS = 0000011 TxMUX RES 6 RES 5 RES 4 RES 3 RES 2 RES 1 TxMUX 0
Selects the source for SPDIF Output (DITOUT) 0 = SPDIF Transmitter - Normal Mode 1 = DIRIN - Loopback Mode
Rev. Pr G | Page 29 of 54
ADAV804
Table 28. Playback Port Control Register
RES 7 ADDRESS = 0000100 CLKSRC1-0 RES 6 RES 5 CLKSRC1 4 CLKSRC0 3
Preliminary Technical Data
SPMODE2 2 SPMODE1 1 SPMODE0 0
SPMODE1-0
Selects the Clock Source for generating the ILRCLK and IBCLK 00 = Input Port is a Slave 01 = Recovered PLL Clock 10 = Internal Clock 1 11 = Internal Clock 2 Selects the serial format of the Playback Port 000 = Left Justified 001 = I2S 100 = 24 Bit Right Justified 101 = 20 Bit Right Justified 110 = 18 Bit Right Justified 111 = 16 Bit Right Justified
Table 29. Auxiliary Input Port Register
RES 7 ADDRESS = 0000101 CLKSRC1-0 RES 6 RES 5 CLKSRC1 4 CLKSRC0 3 SPMODE2 2 SPMODE1 1 SPMODE0 0
SPMODE1-0
Selects the Clock Source for generating the IAUXLRCLK and IAXUBCLK 00 = Input Port is a Slave 01 = Recovered PLL Clock 10 = Internal Clock 1 11 = Internal Clock 2 Selects the serial format of Auxiliary Input Port 000 = Left Justified 001 = I2S 100 = 24 Bit Right Justified 101 = 20 Bit Right Justified 110 = 18 Bit Right Justified 111 = 16 Bit Right Justified
Rev. Pr G | Page 30 of 54
Preliminary Technical Data
Table 30. Record Port Control Register
RES 7 ADDRESS = 0000110 RES CLKSRC1-0 RES 6 CLKSRC1 5 CLKSRC0 4 WLEN1 3 WLEN0 2 SPMODE1 1
ADAV804
SPMODE0 0
WLEN1-0
SPMODE1-0
Reserved Selects the Clock Source for generating the OLRCLK and OBCLK 00 = Record Port is a Slave 01 = Recovered PLL Clock 10 = Internal Clock 1 11 = Internal Clock 2 Selects the Serial Output Word Length 00 = 24 Bits 01 = 20 Bits 10 = 18 Bits 11 = 16 Bits Selects the serial format of the Record Port 00 = Left Justified 01 = I2S 10 = Reserved 11 = Right Justified
Table 31. Auxiliary Output Port Register
RES 7 ADDRESS = 0000111 RES CLKSRC1-0 RES 6 CLKSRC1 5 CLKSRC0 4 WLEN1 3 WLEN0 2 SPMODE1 1 SPMODE0 0
WLEN1-0
SPMODE1-0
Reserved Selects the Clock Source for generating the OAUXLRCLK and OAUXBCLK 00 = Auxiliary Record Port is a Slave 01 = Recovered PLL Clock 10 = Internal Clock 1 11 = Internal Clock 2 Selects the Serial Output Word Length 00 = 24 Bit 01 = 20 Bits 10 = 18 Bits 11 = 16 Bits Selects the serial format of the Auxiliary Record Port 00 = Left Justified 01 = I2S 10 = Reserved 11 = Right Justified
Rev. Pr G | Page 31 of 54
ADAV804
Table 32. Group Delay and Mute Register
MUTE_SRC 7 ADDRESS = 0001000 MUTE_SRC
Preliminary Technical Data
GRPDLY6-0 6,5,4,3,2,1,0
GRPDLY6-0
Soft Mutes the Output of theSample Rate Converter 0 = No Mute 1 = Soft Mute Adds delay to the Sample Rate Converter FIR filter by GRPDLY6-0 Input Samples 0000000 = No Delay 0000001 = 1 Sample Delay 0000010 = 2 Sample Delay 1111110 = 126 Sample Delay 1111111 = 127 Sample Delay
Table 33. Receiver Configuration 1 Register
NO- CLOCK 7 ADDRESS = 0001001 NOCLOCK RXCLK1-0 6,5 AUTO_ DEEMPH 4 ERR1-0 3,2 LOCK1-0 1,0
RXCLK1-0
AUTO_DEEMPH
ERR1-0
LOCK1-0
Selects the source of the Receiver Clock when the PLL is not locked 0 = The Recovered PLL Clock is used 1 = ICLK1 is used Determines the oversampling ratio of the Recovered Receiver Clock 00 = RxCLK is a 128 x fS recovered clock 01 = RxCLK is a 256 x fS recovered clock 10 = RxCLK is a 512 x fS recovered clock 11 = Reserved Automatically de-emphasizes the data from the receiver based on the Channel Status Information 0 = Automatic De-emphasis is disabled 1 = Automatic De-emphasis is enabled Defines what action the receiver should take if the receiver detects a parity or biphase error 00 = No action will be taken 01 = The last valid sample is held 10 = The invalid sample is replaced with zeros 11 = Reserved Defines what action the receiver should take if the PLL loses lock. 00 = No action will be taken 01 = The last valid sample will be held 10 = Zeros will be sent out after the last valid sample 11 = Soft Mute of the last valid audio sample
Rev. Pr G | Page 32 of 54
Preliminary Technical Data
Table 34. Receiver Configuration 2 Register
ADAV804
NO_ VALIDITY 0
SP_PLL_ NO NONRxMUTE SP-PLL SEL1-0 RES RES AUDIO 7 6 5,4 3 2 1 ADDRESS = 0001010 Hard Mutes the Audio Output for the AES3/SPDIF Receiver RxMUTE 0 = AES3/SPDIF Receiver is not muted 1 = AES3/SPDIF Receiver is muted The AES3/SPDIF Receiver PLL will accept a Left/Right Clock from one of the four serial ports as the PLL SP_PLL reference clock 0 = Left/Right Clock generated from the AES3/SPDIF preambles is the reference clock to the PLL 1 = Left/Right Clock from one of the serial ports is the reference clock to the PLL SP_PLL_SEL1-0 Selects one of the four serial ports as the reference clock to the PLL when SP_PLL is set 00 = Playback Port is selected 01 = Auxiliary Input Port is selected 10 = Record Port is selected 11 = Auxiliary Output Port is selected When the NONAUDIO bit is set, data from the AES3/SPDIF Receiver will not be allowed into the Sample Rate NO Converter (SRC). If the NONAUDIO data is due to DTS, AAC, etc. as defined by the IEC61937 standard, then the NONAUDIO data from the AES3/SPDIF Receiver will not be allowed into the SRC regardless of the state of this bit 0 = AES3/SPDIF Receiver data will be sent to the SRC 1 = Data fro the AES3/SPDIF Receiver will not be allowed into the SRC if the NONAUDIO bit is set NO_VALIDITY When the VALIDITY bit is set data from the AES3/SPDIF Receiver will not be allowed into the SRC 0 = AES3/SPDIF Receiver data will be sent to the SRC 1 = Data from the AES3/SPDIF Receiver will not be allowed into the SRC if the VALIDITY bit is set
Table 35. Receiver Buffer Configuration Register
RES 7 RES 6 RxBCONF5 5 RxBCONF4 4 RxBCONF3 3 RxBCONF2-1 2,1 RxBCONF0 0
ADDRESS = 0001011 If the user bits are formatted according to the IEC60958-3 standard and the DAT Category is detected, the RxBCONF5 User Bit interrupt is only enabled when there is a change in the Start (ID) bit. 0 = The User Bit interrupt is enabled in the normal mode. 1 = If the DAT category is detected, the User bit interrupt is only enabled if there is a change in the Start (ID) bit This bit determines whether Channel A and Channel B User Bits are stored in the buffer together or RxBCONF4 separated between A and B 0 = The User Bits are stored together 1 = The User Bits are stored separately Defines the function of RxCSBINT RxBCONF3 0 = RxCSBINT will be set when a new block of receiver channel status is read, which is 192 audio frames 1 = RxCSBINT will be set only if the first five bytes of the receiver channel status block changes from the previous channel status block Defines the User Bit Buffer RxBCONF2-1 00 = User Bits are ignored 01 = Update the second user bit buffer when the first user bit buffer is full 10 = Format the received user bits according to byte 1, bits 4-7, of the channel status if the PRO bit is set. If the PRO bit is not set format the user bits according to the IEC60958-3 standard 11 = Reserved Defines the User Bit buffer size if RxBCONF2-1 = 01 RxBCONF0 0 = 384 Bits with Preamble-Z as the start of the buffer 1 = 768 Bits with Preamble-Z as the start of the buffer
Rev. Pr G | Page 33 of 54
ADAV804
Table 36. Transmitter Control Register
RES 7 Tx-VALIDITY 6 Tx-RATIO2-0 5,4,3
Preliminary Technical Data
TxCLK SEL1-0 2,1 Tx-ENABLE 0
ADDRESS = 0001100 This bit is used to set or clear the VALIDITY bit in the AES3/SPDIF Transmit stream TxVALIDITY 0 = Audio is suitable for D/A conversion 1 = Audio is not suitable for D/A conversion Determines the AES3/SPDIF Transmit to AES3/SPDIF Receiver ratio TxRATIO2-0 000 = Transmitter to Receiver Ratio is 1:1 001 = Transmitter to Receiver Ratio is 1:2 010 = Transmitter to Receiver Ratio is 1:4 101 = Transmitter to Receiver Ratio is 2:1 110 = Transmitter to Receiver Ratio is 4:1 Selects the clock source for the AES3/SPDIF Transmitter TxCLKSEL1-0 00 = Internal Clock 1 is the clock source for the Transmitter 01 = Internal Clock 2 is the clock source for the Transmitter 10 = The recovered PLL clock is the clock source for the Transmitter 11 = Reserved Enables the AES3/SPDIF Transmitter TxENABLE 0 = The AES3/SPDIF Transmitter is disabled 1 = The AES3/SPDIF Transmitter is enabled
Table 37. Transmitter Buffer Configuration Register
IU_Zeros3-0 7,6,5,4 ADDRESS = 0001101 IU_Zeros3-0 TxBCONF3 3 TxBCONF2-1 2,1 TxBCONF0 0
TxBCONF3
TxBCONF2-1
TxBCONF0
Determines the number of zeros to be stuffed between IUs in a message up to a maximum of 8 0000 = 0 0001 = 1 ...... 0111 = 7 1000 = 8 The Transmitter User Bits can be stored in separate buffers or stored together 0 = The User Bits are stored together 1 = The User Bits are stored seperately Configures the Transmitter User Bit Buffer. 00 = Zeros are transmitted for the User Bits 01 = The transmitter User Bit buffer size is configured according to TxBCONF0 10 = Write the User Bits to the transmit buffer in IUs specified by the IEC60958-3 standard 11 = Reserved Determines the buffer size of the transmitter user bits when TxBCONF2-1 is 01 0 = 384 Bits with Preamble-Z as the start of the buffer 1 = 768 Bits with Preamble-Z as the start of the buffer
Rev. Pr G | Page 34 of 54
Preliminary Technical Data
Table 38. Channel Status Switch Buffer and Transmitter
RES 7 RES 6 Tx_A/B Same 5 Disable_ Tx_Copy 4 RES 3 RES 2 TxCSSWITCH 1
ADAV804
RxCSSWITCH 0
ADDRESS = 0001110 Transmitter Channel Status A and B are the same. The transmitter will only read from the Channel Tx_A/B_Same Status A buffer and place the data into the Channel Status B buffer 0 = Channel Status for A and B are separate 1 = Channel Status for A and B are the same Disables the copying of the Channel Status bits from Transmitter Channel Status Buffer to SPDIF Disable_Tx_Copy Transmitter Buffer 0 = Copying Transmitter Channel Status is enabled 1 = Copying Transmitter Channel Status is disabled Reserved RES Reserved RES The toggle switch for the Transmit Channel Status Buffer TxCSSWITCH 0 = The 24 byte Transmitter Channel Status A Buffer can be accessed at address locations 0x38 through 0x4F 1 = The 24 byte Transmitter Channel Status B Buffer can be accessed at address locations 0x38 through 0x4F The toggle switch for the Receive Channel Status Buffer RxCSSWITCH 0 = The 24 byte Receiver Channel Status A Buffer can be accessed at address locations 0x20 through 0x37 1 = The 24 byte Receiver Channel Status B Buffer can be accessed at address locations 0x20 through 0x37
Table 39. Transmitter Message Zeros Most Significant Byte
MSBZeros7-0 7,6,5,4,3,2,1,0 ADDRESS = 0001111 MSBZero7-0 The most significant byte of the number of zeros to be stuffed between IEC60958-3 messages (packets) Default = 0x00
Table 40. Transmitter Message Zeros Least Significant Byte
LSBZeros7-0 7,6,5,4,3,2,1,0 ADDRESS = 0010000 LSBZero7-0 The least significant byte of the number of zeros to be stuffed between IEC60958-3 messages (packets) Default = 0x09
Rev. Pr G | Page 35 of 54
ADAV804
Table 41. Autobuffer Register
RES 7 Zero_Stuff_IU 6 Auto_Ubits 5
Preliminary Technical Data
Auto_CSBits 4 IU_Zeros3-0 3,2,1,0
ADDRESS = 0010001 Enables the addition or subtraction of zeros between IUs during autobuffering of the Zero_Stuff_IU user bits in IEC60958-3 format 0 = No Zeros added or subtracted 1 = Zeros can be added or subtracted between IUs Enables the User Bits to be autobuffered between the AES3/SPDIF receiver and Auto_UBits transmitter 0 = The User Bits are not autobuffered 1 = The User Bits are autobuffered Enables the Channel Status bits to be autobuffered between the AES3/SPDIF Auto_CSBits receiver and transmitter 0 = The Channel Status bits are not autobuffered 1 = The Channel Status bits are autobuffered Sets the maximum number of zero stuffing to be added between IUs while IU_Zeros3-0 autobuffering up to a maximum of 8 0000 = 0 0001 = 1 ...... 0111 = 7 1000 = 8
Table 42. Sample Rate Ratio MSB Register (Read Only)
RES 7 ADDRESS = 0010010 SRCRATIO14-08 SRCRATIO14-SRCRATIO08 6,5,4,3,2,1,0
The seven most significant bits of the fifteen bit sample rate ratio
Table 43. Sample Rate Ratio LSB Register (Read Only)
SRCRATIO07-SRCRATIO01 7,6,5,4,3,2,1,0 ADDRESS = 0010011 SRCRATIO07-00 The eight least significant bits of the fifteen bit sample rate ratio
Table 44. Preamble-C MSB Register (Read Only)
PRE_C15-PRE_08 7,6,5,4,3,2,1,0 ADDRESS = 0010100 PRE_C15-08 The eight most significant bits of the sixteen bit Preamble-C when Nonaudio data is detected according to the IEC60937 standard, otherwise bits show zeros
Table 45. Preamble-C LSB Register (Read Only)
PRE_C07-PRE_C00 7,6,5,4,3,2,1,0 ADDRESS = 0010101 PRE_C07-00 The eight least significant bits of the sixteen bit Preamble-C when Nonaudio data is detected according to the IEC60937 standard, otherwise bits show zeros
Rev. Pr G | Page 36 of 54
Preliminary Technical Data
Table 46. Preamble-D MSB Register (Read Only)
PRE_D15-PRE_D08 7,6,5,4,3,2,1,0 ADDRESS = 0010110 PRE_D15-08
ADAV804
The eight most significant bits of the sixteen bit Preamble-D when Nonaudio data is detected according to the IEC60937 standard, otherwise bits show zeros. When subframe Nonaudio is used this becomes the 8 most significant bits of the 16 bit Preamble-C of Channel B
Table 47. Preamble-D LSB Register (Read Only)
PRE_D07-PRE_D00 7,6,5,4,3,2,1,0 ADDRESS = 0010111 PRE_D07-00 The eight least significant bits of the sixteen bit Preamble-D when Nonaudio data is detected according to the IEC60937 standard, otherwise bits show zeros When subframe Nonaudio is used this becomes the 8 most significant bits of the 16 bit Preamble-C of Channel B
Table 48. Receiver Error Register (Read Only)
RxValidity 7 ADDRESS = 0011000 RxValidity Emphasis NonAudio NonAudio Preamble Emphasis 6 NonAudio 5 NonAudio Preamble 4 CRCError 3 NoStream 2 BiPhase/ Parity 1 Lock 0
CRCError NoStream BiPhase/Parity Lock
This is the VALIDITY bit in the AES3 Received stream This bit will be set if the audio data is preemphasized. Once it has been read it will remain high and not generate an interrupt unless it changes state This bit will be set when Channel Status Bit 1 (Nonaudio) is set. Once it has been read it will not generate another interrupt unless the data becomes audio or the type of nonaudio data changes This bit will be set if the audio data is nonaudio due to the detection of a Preamble. The NonAudio Preamble Type register will indicate what type of preamble was detected. Once read it will remain in its state and not generate an interrupt unless it has changed state This bit is the error flag for the channel status CRC error check. This bit will not clear until the Receiver Error Register is read This bit will be set if there is no AES3/SPDIF stream present at the AES3/SPDIF receiver. Once read it will remain high and not generate an interrupt unless its changes state. This bit will be set if a biphase or parity error occurred in the AES3/SPDIF stream. This bit will not be cleared until the register is read. This bit will be set if the PLL has locked or cleared when the PLL loses lock. Once read it will remain in its state and not generate an interrupt unless it has changed state.
Rev. Pr G | Page 37 of 54
ADAV804
Table 49. Receiver Error Mask Register
RxValidity Mask 7 ADDRESS = 0011001 RxValidity Mask Emphasis Mask 6 Nonaudio Mask 5 NonAudio Preamble Mask 4
Preliminary Technical Data
CRC Error Mask 3 BiPhase/ Parity Mask 1
Nostream Mask 2
Lock Mask 0
Emphasis Mask
NonAudio Mask
NonAudioPreamble Mask
Masks the RxValidity bit from generating an interrupt 0= The RxValidity bit will not generate an interrupt 1 = The RxVvalidity bit will generate and interrupt Masks the Emphasis bit from generating an interrupt 0 = The Emphasis bit will not generate an interrupt 1 = The Emphasis bit will generate and interrupt Masks the NonAudio bit from generating an interrupt 0 = The NonAudio bit will not generate an interrupt 1 = The NonAudio bit will generate and interrupt Masks the NonAudio Preamble bit from generating an interrupt 0 = The NonAudio Preamble bit will not generate an interrupt 1 = The NonAudio Preamble bit will generate and interrupt Masks the CRC Error bit from generating an interrupt 0 = The CRC Error bit will not generate an interrupt 1 = The CRC Error bit will generate and interrupt Masks the NoStream bit from generating an interrupt 0 = The NoStream bit will not generate an interrupt 1 = The NoStream bit will generate an interrupt Masks the BiPhase/Parity bit from generating an interrupt 0 = The BiPhase/Parity bit will not generate an interrupt 1 = The BiPhase/Parity bit will generate an interrupt Masks the Lock bit from generating an interrupt 0 = The Lock bit will not generate an interrupt 1 = The Lock bit will generate an interrupt
CRCError Mask
NoStream Mask
BiPhase/Parity Mask
Lock Mask
Table 50. Sample Rate Converter Error Register (Read Only)
RES RES RES RES TOO_SLOW OVRL OVRR MUTE_IND 7 6 5 4 3 2 1 0 ADDRESS = 0011010 This bit is set when the clock to the SRC is too slow, i.e. there are not enough clock cycles to complete the internal TOO_SLOW convolution. This bit will be set when the Left Output Data of the sample rate converter has gone over the full-scale range and has OVRL been clipped. This bit will not be cleared until the register is read. This bit will be set when the Right Output Data of the sample rate converter has gone over the full-scale range and has OVRR been clipped. This bit will not be cleared until the register is read. Mute Indicated. This bit is set when the SRC is in Fast Mode and clicks or pops may be heard in the SRC output data. The MUTE_IND output of the SRC can be muted, if required, until the SRC is in Slow Mode. Once read this bit will remain in its state and not generate an interrupt until it has changed state.
Rev. Pr G | Page 38 of 54
Preliminary Technical Data
Table 51. Sample Rate Converter Error Mask Register
RES 7 ADDRESS = 0011011 OVRL Mask RES 6 RES 5 RES 4 RES 3 OVRL Mask 2 OVRR Mask 1
ADAV804
MUTE_IND MASK 0
OVRR Mask
MUTE_IND MASK
Masks the OVRL from generating an interrupt 0 = The OVRL bit will not generate an interrupt 1 = The OVRL bit will generate an interrupt Masks the OVRR from generating an interrupt 0 = The OVRR bit will not generate an interrupt 1 = The OVRR bit will generate an interrupt Reserved Masks the MUTE_IND from generating an interrupt 0 = The MUTE_IND bit will not generate an interrupt 1 = The MUTE_IND bit will generate an interrupt
Table 52. Interrupt Status Register
SRC TxCSTTxUBTxCSRxCSRxUBRxCSRxError INT INT INT DIFF INT BINT ERROR 7 6 5 4 3 2 1 0 ADDRESS = 0011100 SRCERROR This bit will be set if one of the sample rate converter interrupts is asserted, and the host should immediately read the Sample Rate Converter Error register. This bit will remain high until the Interrupt Status register is read This bit will be set if a write to the transmitter channel status buffer was made while transmitter channel status bits were TxCSTINT being copied from transmitter CS buffer to SPDIF Transmit buffer This bit will be set if the SPDIF Transmit buffer is empty. This bit will remain high until the Interrupt Status register is read. TxUBINT This bit will be set if the transmitter channel status bit buffer has transmitted its block of channel status. This bit will remain TxCSINT high until the Interrupt Status register is read This bit will be set if the receiver Channel Status A block is different from the receiver Channel Status B clock. This bit will RxCSDIFF remain high until read but does not generate an interupt This bit will be set if the Receiver User bit buffer has a new block or message. This bit will remain high until the Interrupt RxUBINT Status register is read. This bit will be set if a new block of channel status is read when RxBCONF3 = 0 or if the channel status has changed when RxCSBINT RxBCONF3 = 1. This bit will remain high until the Interrupt Status register is read. This bit will be set if one of the AES3/SPDIF receiver interrupts is asserted and the host should immediately read the Receiver RxERROR Error register. This bit will remain high until the Interrupt Status register is read.
Rev. Pr G | Page 39 of 54
ADAV804
Table 53. Interrupt Status Mask Register
TxCSTINT TxUBINT TxCSBINT Mask Mask Mask 6 5 4 ADDRESS = 0011101 DEFAULT VALUE = 0x00 Masks the SRCError bit from generating an interrupt SRCError Mask 0 = The SRCError bit will not generate an interrupt 1 = The SRCError bit will generate and interrupt Masks the TxCSTBINT bit from generating an interrupt TxCSTINT Mask 0 = The TxSCTINT bit will not generate an interrupt 1 = The TxCSTINT bit will generate and interrupt Masks the TxUBINT bit from generating an interrupt TxUBINT Mask 0 = The TxUBINT bit will not generate an interrupt 1 = The TxUBINT bit will generate and interrupt Masks the RxUBINT bit from generating an interrupt RxUBINT Mask 0 = The RxUBINT bit will not generate an interrupt 1 = The RxUBINT bit will generate and interrupt Masks the RxCSBINT bit from generating an interrupt RxCSBINT Mask 0 = The RxCSBINT bit will not generate an interrupt 1 = The RxCSBINT bit will generate an interrupt Masks the RxError bit from generating an interrupt RxError Mask 0 = The RxError bit will not generate an interrupt 1 = The RxError bit will generate an interrupt SRCError Mask 7 RES 3
Preliminary Technical Data
RxUBINT Mask 2 RxCSBINT Mask 1 RxError Mask 0
Table 54. Mute and Deemphasis Register
RES 7 ADDRESS = 0011110 TxMUTE RES RES SRC_DEEM1-0 4 3 2,1 DEFAULT VALUE = 0x00 Mutes the AES3/SPDIF Transmitter 0 = The Transmitter is not muted 1 = The Transmitter is muted Selects the Deemphasis Filter for the input data to the Sample Rate Converter 00 = No Deemphasis 01 = 32 kHz Deemphasis 10 = 44.1 kHz Deemphasis 11 = 48 kHz Deemphasis RES 6 TxMUTE 5 RES 0
SRC_DEEM1-0
Rev. Pr G | Page 40 of 54
Preliminary Technical Data
Table 55. NonAudio Preamble Type Register (Read Only)
ADAV804
ADDRESS = 0011111 DTS-CD Preamble NonAudio Frame NonAudio Subframe_A NonAudio Subframe_B
DTS-CD Non Audio Non Audio Non Audio Non Audio RES RES RES Preamble Frame Subframe_A Subframe_B 6 5 4 3 2 1 0 DEFAULT VALUE = 0x Will be set if the DTS-CD Preamble is detect This bit will be set if the data received through the AES3/SPDIF Receiver is nonaudio data according to the IEC61937 standard or nonaudio data according to SMPTE337M This bit will be set if the data received through Channel A of the AES3/SPDIF Receiver is subframe nonaudio data according to SMPTE337M This bit will be set if the data received through Channel B of the AES3/SPDIF Receiver is subframe nonaudio data according to SMPTE337M RES 7
Table 56. Receiver Channel Status Buffer
RCSB7 7 ADDRESS = 0100000 to 0110111 This is the 24 byte Receiver Channel Status Buffer. The PRO bit is stored at address location 0x20, bit 0. This buffer is read only if the channel status is not autobuffered between the receiver and transmitter. RCSB6 6 RCSB5 5 RCSB4 4 RCSB3 3 RCSB2 2 RCSB1 1 RCSB0 0
Table 57. Transmitter Channel Status Buffer
TCSB7 TCSB6 TCSB5 TCSB4 TCSB3 TCSB2 TCSB1 TCSB0 7 6 5 4 3 2 1 0 ADDRESS = 0111000 to 1001111 This is the 24 byte Transmitter Channel Status Buffer. The PRO bit is stored at address location 0x38, bit 0. This buffer is disabled when autobuffering between the receiver and transmitter is enabled.
Table 58. Receiver User Bit Buffer Indirect Address Register
RxUBADDR07-RxUBADDR00 7,6,5,4,3,2,1,0 ADDRESS = 1010000 RxUBADDR07-00 Indirect Address pointing to the address location in the Receiver User Bit buffer
Table 59. Receiver User Bit Buffer Data Registe
RxUBDATA07-RxUBDATA00 7,6,5,4,3,2,1,0 ADDRESS = 1010001 RxUBDATA07-00 A read from this register will read 8 bits of user data from the Receiver User bit buffer pointed to by RxUBADDR7-0. This buffer can be written to when autobuffering of the user bits is enabled otherwise it is a read only buffer
Table 60. Transmitter User Bit Buffer Indirect Address Register
TxUBADDR07-TxUBADDR00 7,6,5,4,3,2,1,0 ADDRESS = 1010010 TxUBADDR07-00 Indirect Address pointing to the address location in the Transmitter User Bit buffer
Rev. Pr G | Page 41 of 54
ADAV804
Table 61. Transmitter User Bit Buffer Data Register
TxUBDATA07-TxUBDATA00 7,6,5,4,3,2,1,0 ADDRESS = 1010011 TxUBDATA07-00
Preliminary Technical Data
A write to this register will write 8 bits of user data to the Transmit User bit buffer pointed to by TxUBADDR7-0. When User Bit autobuffering is enabled this buffer is disabled.
Table 62. Q Subcode CRC Error Status Register (Read Only)
RES RES RES RES RES RES QCRCERROR QSUB 7 6 5 4 3 2 1 0 ADDRESS = 1010100 This bit will be set if the CRC check of the Q Subcode fails. This bit will remain high but will not generate an interrupt. This QCRCERROR bit will be cleared once the register is read. This bit will be set if a Q subcode has been read into the Q subcode buffer QSUB
Table 63. Q Subcode Buffe
ADDRESS 0x55 0x56 0x57 0x58 0x59 0x5A 0x5B 0x5C 0x5D 0x5E BIT7 Address Track Number Index Minute Second Frame Zero Absolute Minute Absolute Second Absolute Frame BIT6 Address Track Number Index Minute Second Frame Zero Absolute Minute Absolute Second Absolute Frame BIT5 Address Track Number Index Minute Second Frame Zero Absolute Minute Absolute Second Absolute Frame BIT4 Address Track Number Index Minute Second Frame Zero Absolute Minute Absolute Second Absolute Frame BIT3 Control Track Number Index Minute Second Frame Zero Absolute Minute Absolute Second Absolute Frame BIT2 Control Track Number Index Minute Second Frame Zero Absolute Minute Absolute Second Absolute Frame BIT1 Control Track Number Index Minute Second Frame Zero Absolute Minute Absolute Second Absolute Frame BIT0 Control Track Number Index Minute Second Frame Zero Absolute Minute Absolute Second Absolute Frame
Rev. Pr G | Page 42 of 54
Preliminary Technical Data
Table 64. Datapath Control Register 1
SRC1 SRC0 REC2 7 6 5 ADDRESS = 1100010 Datapath Source Select for Sample Rate Converter(SRC) SRC1-0 00 = ADC 01 = DIR 10 = Playback 11 = Auxiliary In Datapath Source Select for Record Output Port REC2-0 000 = ADC 001 = DIR 010 = Playback 011 = Auxiliary In 100 = SRC Datapath Source Select for Auxiliary Output Port AUXO2-0 000 = ADC 001 = DIR 010 = Playback 011 = Auxiliary In 100 = SRC REC1 4 REC0 3 AUXO2 2 AUXO1 1
ADAV804
AUXO0 0
Table 65. Datapath Control Register 2
RES 7 RES 6 DAC2 5 DAC1 4 DAC0 3 DIT2 2 DIT1 1 DIT0 0
ADDRESS = 1100011 Datapath Source Select for DAC DAC2-0 000 = ADC 001 = DIR 010 = Playback 011 = Auxiliary In 100 = SRC Datapath Source Select for DIT DIT2-0 000 = ADC 001 = DIR 010 = Playback 011 = Auxiliary In 100 = SRC
Rev. Pr G | Page 43 of 54
ADAV804
Table 66. DAC Control Register 1
DR_ALL 7 ADDRESS = 1100100 DR_ALL DR_DIG 6 CHSEL1 5 CHSEL0 4
Preliminary Technical Data
POL1 3 POL0 2 MUTER 1 MUTEL 0
DR_ALL
Hard Reset and Powerdown 0 = Normal, Output pins go to VREF Level 1 = Hard Reset & Low Power, Output pins go to AGND DAC Digital Reset 0 = Normal 1 = Reset All except registers
CHSEL1-0
DAC Channel Select 00 = Normal Left-Right 01 = Both Right 10 = Both Left 11 = Swapped, Right-Left
POL1-0
DAC Channel Polarity 00 = Both Positive 01 = Left Negative 10 = Right Negative 11 = Both Negative
MUTER
Mute Right Channel 0 = Normal 1 = Mute
MUTEL
Mute Left Channel 0 = Normal 1 = Mute
Table 67. DAC Control Register 2
RES RES DMCLK1 7 6 5 ADDRESS = 1100101 DAC MCLK Divider DMCLK1-0 00 = MCLK 01 = MCLK/1.5 10 = MCLK/2 11 = MCLK/3 DAC Interpolator Select DFS1-0 00 = 8 x (MCLK = 256 x fS) 01 = 4 x (MCLK = 128 x fS) 10 = 2 x (MCLK = 64 x fS) 11 = Reserved DAC De-emphasis Select 00 = None DEEM1-0 01 = 44.1 kHz 10 = 32 kHz 11 = 48 kHz DMCLK0 4 DFS 3 DFS0 2 DEEM1 1 DEEM0 0
Rev. Pr G | Page 44 of 54
Preliminary Technical Data
Table 68. DAC Control Register 3
RES RES RES 7 6 5 ADDRESS = 1100110 DAC Zero Flag on Mute and Zero Volume ZFVOL 0 = Enabled 1 = Disabled DAC Zero Flag on Zero Data Disable ZFDATA 0 = Enabled 1 = Disabled DAC Zero Flag Polarity ZFPOL 0 = Active High 1 = Active Low RES 4 RES 3 ZFVOL 2 ZFDATA 1
ADAV804
ZFPOL 0
Table 69. DAC Control Register 4
RES 7 INTRPT 6 ZEROSEL1 5 ZEROSEL0 4 RES 3 RES 2 RES 1 RES 0
ADDRESS = 1100111 This bit selects the functionality of the ZEROL/INT pin INTRPT 0 = The pin functions as a ZEROL flag pin 1 = The pin functions as an interrupt pin These bits control the functionality of the ZEROR pin when the ZEROL/INT pin is used as an interrupt ZEROSEL1-0 00 = The pin functions as a ZEROR flag pin 01 = The pin functions as a ZEROL flag pin 10 = The pin is asserted when either the Left or Right channel is zero 10 = The pin is asserted when both the Left and Right channels are zero
Table 70. DAC Left Volume Register
DVOLL7 7 DVOLL6 6 DVOLL5 5 DVOLL4 4 DVOLL3 3 DVOLL2 2 DVOLL1 1 DVOLL0 0
ADDRESS = 1101000 DAC Left Channel Volume Control DVOLL7-0 1111111 = 0dBFS 1111110 = -0.375dBFS 0000000 = -95.625dBFS
Table 71. DAC Right Volume Register
DVOLR7 7 DVOLR6 6 DVOLR5 5 DVOLR4 4 DVOLR3 3 DVOLR2 2 DVOLR1 1 DVOLR0 0
ADDRESS = 1101001 DAC Right Channel Volume Control DVOLL7-0 1111111 = 0dBFS 1111110 = -0.375dBFS 0000000 = -95.625dBFS
Rev. Pr G | Page 45 of 54
ADAV804
Table 72. DAC Left Peak Volume Register
RES 7 ADDRESS = 1101010 DLP5-0 DAC Left Channel Peak Volume Detection 000000 = 0dBFS 000001 = -1dBFS 111111 = -63dBFS RES 6 DLP5 5 DLP4 4 DLP3 3
Preliminary Technical Data
DLP2 2 DLP1 1 DLP0 0
Table 73. DAC Right Peak Volume Register
RES RES DRP5 7 6 5 ADDRESS = 1101011 DAC Right Channel Peak Volume Detection DRP5-0 000000 = 0dBFS 000001 = -1dBFS 111111 = -63dBFS DRP4 4 DRP3 3 DRP2 2 DRP1 1 DRP0 0
Table 74. ADC Left Channel PGA Gain Register
RES 7 RES 6 AGL5 5 AGL4 4 AGL3 3 AGL2 2 AGL1 1 AGL0 0
ADDRESS = 1101100 PGA Left Channel Gain Control AGL5-0 000000 = 0 dB 000001 = +0.5 dB ........... 101111 = +23.5 dB 110000 = +24 dB ........... 111111 = +24 dB
Table 75. ADC Right Channel PGA Gain Register
RES 7 RES 6 AGR5 5 AGR4 4 AGR3 3 AGR2 2 AGR1 1 AGR0 0
ADDRESS = 1101101 PGA Right Channel Gain Control AGR5-0 000000 = 0 dB 000001 = +0.5 dB ........... 101111 = +23.5 dB 110000 = +24 dB ........... 111111 = +24 dB
Rev. Pr G | Page 46 of 54
Preliminary Technical Data
Table 76. ADC Control Register 1
AMC 7 HPF 6 PWRDWN 5 AND_PD 4 MUTER 3 MUTEL 2 PLPD 1
ADAV804
PRPD 0
ADDRESS = 1101110 ADC Modulator Clock AMC 0 = ADC MCLK/2 (128 x fS) 1 = ADC MCLK/4 (64 x fS) High Pass Filter Enable HPF 0 = Normal 1 = HPF Enabled ADC Powerdown PWRDWN 0 = Normal 1 = Powerdown ADC Analog Section Powedown ANA_PD 0 = Normal 1 = Powedown Mute ADC Right Channel MUTER 0 = Normal 1 = Muted Mute ADC Left Channel MUTEL 0 = Normal 1 = Muted PGA Left Powerdown PLPD 0 = Normal 1 = Powerdown PGA Right Powerdown PRPD 0 = Normal 1 = Powerdown
Table 77. ADC Control Register 2
RES 7 RES 6 RES 5 BUF_PD 4 RES 3 RES 2 MCD1 1 MCD0 0
ADDRESS = 1101111 Reference Buffer Powerdown Control BUF_PD 0 = Normal 1 = Powerdown ADC Master Clock Divider MCD1-0 00 = Divide by 1 01 = Divide by 2 10 = Divide by 3 11 = Divide by 1
Table 78. ADC Left Volume Register
AVOLL7 AVOLL6 AVOLL5 7 6 5 ADDRESS = 1110000 ADC Left Channel Volume Control AVOLL7-0 1111111 = 1.0 (0dBFS) 1111110 = 0.996 (-0.00348dBFS) 1000000 = 0.5 (-6dBFS) 0111111 = 0.496 (-6.09dBFS) 0000000 = 0.0039 (-48.18dBFS) AVOLL4 4 AVOLL3 3 AVOLL2 2 AVOLL1 1 AVOLL0 0
Rev. Pr G | Page 47 of 54
ADAV804
Table 79. ADC Right Volume Register
AVOLR7 AVOLR6 AVOLR5 7 6 5 ADDRESS = 1110001 ADC Right Channel Volume Control AVOLR7-0 1111111 = 1.0 (0dBFS) 1111110 = 0.996 (-0.00348dBFS) 1000000 = 0.5 (-6dBFS) 0111111 = 0.496 (-6.09dBFS) 0000000 = 0.0039 (-48.18dBFS) AVOLR4 4 AVOLR3 3
Preliminary Technical Data
AVOLR2 2 AVOLR1 1 AVOLR0 0
Table 80. ADC Left Peak Volume Register
RES RES ALP5 7 6 5 ADDRESS = 1110010 ADC Left Channel Peak Volume Detection ALP5-0 000000 = 0dBFS 000001 = -1dBFS 111111 = -63dBFS ALP4 4 ALP3 3 ALP2 2 ALP1 1 ALP0 0
Table 81. ADC Right Peak Volume Register
RES 7 RES 6 ARP5 5 ARP4 4 ARP3 3 ARP2 2 ARP1 1 ARP0 0
ADDRESS = 1110011 ADC Right Channel Peak Volume Detection ARP5-0 000000 = 0dBFS 000001 = -1dBFS 111111 = -63dBFS
Table 82. PLL Control Register 1
RES RES MCLKODIV PLLDIV 7 6 5 4 ADDRESS = 1110100 Divide Input MCLK by 2 to generate MCLKO MCLKODIV 0 = Disabled 1 = Enabled Divide XIN by 2 to generate the PLL master clock PLLDIV 0 = Disabled 1 = Enabled Powerdown PLL2 PLL2PD 0 = Normal 1 = Powerdown Powerdown PLL1 PLL1PD 0 = Normal 1 = Powerdown Powerdown XTAL Oscillator XTLPD 0 = Normal 1 = Powerdown Clock Output for SYSCLK3 SYSCLK3 0 = 512 x fS 1 = 256 x fS
Rev. Pr G | Page 48 of 54
PLL2PD 3
PLL1PD 2
XTLPD 1
SYSCLK3 0
Preliminary Technical Data
Table 83. PLL Control Register 2
FS2-1 FS2-1 SEL2 7 6 5 ADDRESS = 1110101 Sample Rate Select for PLL2 FS2_1-0 00 = 48 kHz 01 = Reserved 10 = 32 kHz 11 = 44.1 kHz Oversample Ratio Select for PLL2 SEL2 0 = 256 x fS 1 = 384 x fS Double Selected Sample Rate on PLL2 DOUB2 0 = Disabled 1 = Enabled Sample Rate Select for PLL1 FS1-0 00 = 48 kHz 01 = Reserved 10 = 32 kHz 11 = 44.1 kHz Oversample Ratio Select for PLL1 SEL1 0 = 256 x fS 1 = 384 x fS Double Selected Sample Rate on PLL1 DOUB1 0 = Disabled 1 = Enabled DOUB2 4 FS1-1 3 FS1-0 2 SEL1 1
ADAV804
DOUB1 0
Rev. Pr G | Page 49 of 54
ADAV804
Table 84 .Internal Clocking Control Register 1
DCLK2 7 DCLK1 6 DCLK0 5 ACLK2 4 ACLK1 3
Preliminary Technical Data
ACLK0 2 ICLK2-1 1 ICLK2-0 0
ADDRESS = 1110110 DAC Clock Source Select DCLK2-0 000 = XIN 001 = MCLKI 010 = PLLINT1 011 = PLLINT2 100 = DIR PLL (512 x fs) 101 = DIR PLL (256 x fs) 110 = XIN 111 = XIN ADC Clock Source Select ACLK2-0 000 = XIN 001 = MCLKI 010 = PLLINT1 011 = PLLINT2 100 = DIR PLL (512 x fs) 101 = DIR PLL (256 x fs) 110 = XIN 111 = XIN Source Selector for Internal Clock ICLK2 ICLK2 00 = XIN 01 = MCLKI 10 = PLLINT1 11 = PLLINT2
Rev. Pr G | Page 50 of 54
Preliminary Technical Data
Table 85. Internal Clocking Control Register 2
RES 7 RES 6 RES 5 ICLK1-1 4 ICLK1-0 3 PLL2INT1 2 PLL2INT0 1
ADAV804
PLL1INT 0
ADDRESS = 1110111 Source Selector for Internal Clock ICLK1 Iclk1-0 00 = XIN 01 = MCLKI 10 = PLLINT1 11 = PLLINT2 PLL2 Internal Selector (See Figure 18) PLL2INT1-0 00 = FS2 01 = FS2/2 10 = FS3 11 = FS3/2 PLL1 Internal Selector PLL1INT 0 = FS1 1 = FS1/2
Table 86. PLL Clock Source Register
PLL1_Source 7 PLL2_Source 6 RES 5 RES 4 RES 3 RES 2 RES 1 RES 0
ADDRESS = 1111000 Selects the clock source for PLL1 PLL1_Source 0 = XIN 1 = MCLKI Selects the clock source for PLL2 PLL2_Source 0 = XIN 1 = MCLKI
Table 87. PLL Output Enable Register
RES 7 RES 6 RES 5 DIRIN_PIN 4 RES 3 SYSCLK1 2 SYSCLK2 1 SYSCLK3 0
ADDRESS = 1111010 This bit determines the input levels of the DIRIN pin DIRIN_PIN 0 = The DIRIN will accept input signals down to 200mV according to AES3 requirements 1 = The DIRIN will accept input signals as defined in Table 13 Enables the SYSCLK1 Output SYSCLK1 0 = Enabled 1 = Disabled Enables the SYSCLK2 Output SYSCLK2 0 = Enabled 1 = Disabled Enables the SYSCLK3 Output SYSCLK3 0 = Enabled 1 = Disabled
Rev. Pr G | Page 51 of 54
ADAV804
Table 88. ALC Control Register 1
FSSEL1-0 7,6
Preliminary Technical Data
GAINCNTR1-0 RECMODE1-0 LIMDET 5,4 3,2 1 Default = 0x00 These bits should equal the sample rate of the ADC 00 = 96 kHz 01 = 48 kHz 10 = 32 kHz 11 = Reserved These bits determine the limit of the counter used in Limited Recovery Mode 00 = 3 01 = 7 10 = 15 11 = 31 These bits determine which recovery mode is used by the ALC section 00 = No Recovery 01 = Normal Recovery 10 = Limited Recovery 11 = Reserved Limit Detect Mode 0 = ALC is used when either channel exceeds the set limit 1 = ALC is used only when both channels exceed the set limit ALC Enable 0 = Disable ALC 1 = Enable ALC ALCEN 0
ADDRESS = 1111011 FSSEL1-0
GAINCNTR1-0
RECMODE1-0
LIMDET
ALCEN
Table 89. ALC Control Register 2
RES 7 ADDRESS = 1111100 RECTH1-0 Recovery Threshold 00 = -2 dB 01 = -3 dB 10 = -4 dB 11 = -6 dB Attack Theshold 00 = 0 dB 01 = -1 dB 10 = -2 dB 11 = -4 dB Recovery Time Selection 00 = 32 ms 01 = 64 ms 10 = 128 ms 11 = 256 ms Attack Timer Selection 0 = 1 ms 1 = 4 ms RECTH1-0 6,5 Default = 0x52 ATKTH1-0 4,3 RECTIME1-0 ATKTIME 2,1 0
ATKTH1-0
RECTIME1-0
ATKTIME
Rev. Pr G | Page 52 of 54
Preliminary Technical Data
Table 90. ALC Control Register 3
ADAV804
ADDRESS = 1111101 ALC RESET
ALC RESET 7,6,5,4,3,2,1,0 Default = 0x00 A write to this register will restart the ALC operation. The value written to this register is irrelevant. A read from this register will give the gain reduction factor.
Rev. Pr G | Page 53 of 54
ADAV804 OUTLINE DIMENSIONS
Preliminary Technical Data
Figure 40. 64-Lead Plastic Quad Flatpack [LQFP] (ST-64) Dimensions shown in inches and (millimeters)
ORDERING GUIDE
Model ADAV804AST Temperature Range -40C to +85C Control Interface I 2C DAC Outputs Differential Package Options ST-64
(c) 2003 Analog Devices, Inc. All rights reserved. Trademarks and registered trademarks are the property of their respective owners. PR04755-0-3/04(PrG)
Rev. Pr G | Page 54 of 54


▲Up To Search▲   

 
Price & Availability of ADAV804

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X